You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2010/11/13 19:49:53 UTC

svn commit: r1034844 - /myfaces/commons/branches/jsf_11/myfaces-commons-converters/src/main/resources/META-INF/tagConverterClass11.vm

Author: lu4242
Date: Sat Nov 13 18:49:53 2010
New Revision: 1034844

URL: http://svn.apache.org/viewvc?rev=1034844&view=rev
Log:
fix properties with Class type only should be evaluated at build time

Modified:
    myfaces/commons/branches/jsf_11/myfaces-commons-converters/src/main/resources/META-INF/tagConverterClass11.vm

Modified: myfaces/commons/branches/jsf_11/myfaces-commons-converters/src/main/resources/META-INF/tagConverterClass11.vm
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_11/myfaces-commons-converters/src/main/resources/META-INF/tagConverterClass11.vm?rev=1034844&r1=1034843&r2=1034844&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_11/myfaces-commons-converters/src/main/resources/META-INF/tagConverterClass11.vm (original)
+++ myfaces/commons/branches/jsf_11/myfaces-commons-converters/src/main/resources/META-INF/tagConverterClass11.vm Sat Nov 13 18:49:53 2010
@@ -75,8 +75,13 @@ public class $utils.getClassFromFullClas
             if (UIComponentTag.isValueReference($field))
             {
 #if ($converter.isEvaluateELOnExecution() && !($property.isLiteralOnly()))
+#if ($utils.getClassFromFullClass($property.className) == "Class")
+                ValueBinding vb = facesContext.getApplication().createValueBinding($field);
+                converter.${utils.getPrefixedPropertyName("set",$property.name)}(($property.className) vb.getValue(facesContext));
+#else
                 ValueBinding vb = facesContext.getApplication().createValueBinding($field);
                 converter.setValueBinding("$property.name", vb);
+#end
 #else
                 ValueBinding vb = facesContext.getApplication().createValueBinding($field);
 #if ($utils.isPrimitiveClass($property.className))