Author: maksimkaszynski
Date: 2007-10-24 09:24:11 -0400 (Wed, 24 Oct 2007)
New Revision: 3504
Modified:
trunk/cdk/generator/src/main/resources/META-INF/templates12/taglib.vm
Log:
fixed wrong tld definition
Modified: trunk/cdk/generator/src/main/resources/META-INF/templates12/taglib.vm
===================================================================
--- trunk/cdk/generator/src/main/resources/META-INF/templates12/taglib.vm 2007-10-24
13:04:13 UTC (rev 3503)
+++ trunk/cdk/generator/src/main/resources/META-INF/templates12/taglib.vm 2007-10-24
13:24:11 UTC (rev 3504)
@@ -3,25 +3,36 @@
#macro(tagAttributes $source)
#foreach( $prop in ${source.properties} )
#if( !${prop.hidden} && !${prop.disabled} )
- <attribute>
- <name>${prop.name}</name>
- #if(${prop.required})
- <required>true</required>
- #end
- <rtexprvalue>false</rtexprvalue>
- <description>${prop.xmlEncodedDescription}</description>
- </attribute>
+ <attribute>
+ <description>${prop.xmlEncodedDescription}</description>
+ <name>${prop.name}</name>
+ #if(${prop.required})
+ <required>true</required>
+ #end
+ #if(${prop.el})
+ #if( !$prop.isInstanceof("javax.faces.el.MethodBinding") &&
!$prop.isInstanceof("javax.el.MethodExpression") )
+ <deferred-value>
+ <type>${prop.classname}</type>
+ </deferred-value>
+ #else
+ <deferred-method>
+ <method-signature>${prop.returntype}
${prop.name}(${prop.methodargs})</method-signature>
+ </deferred-method>
+ #end
+ #else
+ <rtexprvalue>false</rtexprvalue>
+ #end
+ </attribute>
#if( $prop.alias )
- <attribute>
- <name>${prop.alias}</name>
- <rtexprvalue>false</rtexprvalue>
- <description>Alias for ${prop.name} :
${prop.xmlEncodedDescription}</description>
- </attribute>
+ <attribute>
+ <name>${prop.alias}</name>
+ <rtexprvalue>false</rtexprvalue>
+ <description>Alias for ${prop.name} :
${prop.xmlEncodedDescription}</description>
+ </attribute>
#end
#end
#end
#end
-
##Create tag for dedicated object in config
#macro(tag $source)
#if($source.tag)
Show replies by date