Author: alexsmirnov
Date: 2011-01-11 19:25:30 -0500 (Tue, 11 Jan 2011)
New Revision: 20958
Modified:
trunk/cdk/generator/src/main/java/org/richfaces/cdk/apt/processors/FunctionProcessor.java
Log:
CODING IN PROGRESS - issue RF-10179: CDK: functions not generated into taglib properly
https://issues.jboss.org/browse/RF-10179
Modified:
trunk/cdk/generator/src/main/java/org/richfaces/cdk/apt/processors/FunctionProcessor.java
===================================================================
---
trunk/cdk/generator/src/main/java/org/richfaces/cdk/apt/processors/FunctionProcessor.java 2011-01-12
00:11:56 UTC (rev 20957)
+++
trunk/cdk/generator/src/main/java/org/richfaces/cdk/apt/processors/FunctionProcessor.java 2011-01-12
00:25:30 UTC (rev 20958)
@@ -36,6 +36,7 @@
import org.richfaces.cdk.CdkProcessingException;
import org.richfaces.cdk.annotations.Function;
+import org.richfaces.cdk.annotations.TagType;
import org.richfaces.cdk.apt.SourceUtils;
import org.richfaces.cdk.model.ClassName;
import org.richfaces.cdk.model.ComponentLibrary;
@@ -92,7 +93,7 @@
} else {
model.setName(methodElement.getSimpleName().toString());
}
- utils.setModelProperty(model, function, "type");
+ model.setType(utils.getAnnotationValue(function, "type",
TagType.class));
setDescription(model, function, getDocComment(methodElement));
// Calculate method signature
StringBuilder signature = new StringBuilder();