[richfaces-svn-commits] JBoss Rich Faces SVN: r5478 - trunk/cdk/generator/src/main/resources/META-INF/templates12.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Fri Jan 18 20:13:31 EST 2008


Author: nbelaevski
Date: 2008-01-18 20:13:31 -0500 (Fri, 18 Jan 2008)
New Revision: 5478

Modified:
   trunk/cdk/generator/src/main/resources/META-INF/templates12/componentTag.vm
Log:
http://jira.jboss.com/jira/browse/RF-1951

Modified: trunk/cdk/generator/src/main/resources/META-INF/templates12/componentTag.vm
===================================================================
--- trunk/cdk/generator/src/main/resources/META-INF/templates12/componentTag.vm	2008-01-18 20:19:41 UTC (rev 5477)
+++ trunk/cdk/generator/src/main/resources/META-INF/templates12/componentTag.vm	2008-01-19 01:13:31 UTC (rev 5478)
@@ -40,12 +40,6 @@
 		${component.simpleClassName} comp = (${component.simpleClassName}) component;
 #foreach( $prop in $component.properties )
  #if( !$prop.existintag && !$prop.hidden)
-		 #if($prop.elonly)
-			if(null != this._${prop.name} && this._${prop.name}.isLiteralText()){
-				throw new IllegalArgumentException("Component ${component.name} with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property ${prop.name}");
-			}
-		 #end
-
 		 #if($prop.name == "action")
 			setActionProperty(comp, this._${prop.name});
 		 #elseif($prop.name == "actionListener")
@@ -78,6 +72,12 @@
 				((${component.simpleClassName})component).${prop.setterName}(this._${prop.name});
 			}		
 		 #else
+			 #if($prop.elonly)
+				if(null != this._${prop.name} && this._${prop.name}.isLiteralText()){
+					throw new IllegalArgumentException("Component ${component.name} with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property ${prop.name}");
+				}
+			 #end
+
 			#if ($prop.el)
 			if (this._${prop.name} != null) {
 				if (this._${prop.name}.isLiteralText()) {




More information about the richfaces-svn-commits mailing list