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 2008/05/27 11:29:20 UTC
svn commit: r660445 -
/myfaces/tomahawk/trunk/core/src/main/resources/META-INF/componentClass11.vm
Author: lu4242
Date: Tue May 27 02:29:19 2008
New Revision: 660445
URL: http://svn.apache.org/viewvc?rev=660445&view=rev
Log:
MYFACES-1876 use new instead Integer.valueOf or related
Modified:
myfaces/tomahawk/trunk/core/src/main/resources/META-INF/componentClass11.vm
Modified: myfaces/tomahawk/trunk/core/src/main/resources/META-INF/componentClass11.vm
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/META-INF/componentClass11.vm?rev=660445&r1=660444&r2=660445&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/META-INF/componentClass11.vm (original)
+++ myfaces/tomahawk/trunk/core/src/main/resources/META-INF/componentClass11.vm Tue May 27 02:29:19 2008
@@ -182,8 +182,12 @@
#elseif ( $property.isStateHolder() )## || $utils.isConverter($type)
values[$arrayIndex] = saveAttachedState(facesContext,$field);
#elseif($utils.isPrimitiveClass($type))
+#if ($type == "boolean")
values[$arrayIndex] = ${utils.getBoxedClass($type)}.valueOf($field);
#else
+ values[$arrayIndex] = new ${utils.getBoxedClass($type)}($field);
+#end
+#else
values[$arrayIndex] = $field;
#end
#if($utils.isPrimitiveClass($type) && !$property.isTagExcluded())