myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmarinsc...@apache.org
Subject svn commit: r513253 - /myfaces/core/trunk/api/src/main/java/javax/faces/component/UIInput.java
Date Thu, 01 Mar 2007 10:11:32 GMT
Author: mmarinschek
Date: Thu Mar  1 02:11:31 2007
New Revision: 513253

URL: http://svn.apache.org/viewvc?view=rev&rev=513253
Log:
fix for MYFACES-1549 : MyFaces-API issue: getValue of UIInput, add the value in UIInput to
the saveState/restoreState process.

Modified:
    myfaces/core/trunk/api/src/main/java/javax/faces/component/UIInput.java

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UIInput.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UIInput.java?view=diff&rev=513253&r1=513252&r2=513253
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UIInput.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UIInput.java Thu Mar  1 02:11:31
2007
@@ -479,7 +479,7 @@
 
     public Object saveState(FacesContext context)
     {
-        Object values[] = new Object[9];
+        Object values[] = new Object[10];
         values[0] = super.saveState(context);
         values[1] = _immediate;
         values[2] = Boolean.valueOf(_localValueSet);
@@ -489,6 +489,7 @@
         values[6] = saveAttachedState(context, _validator);
         values[7] = saveAttachedState(context, _valueChangeListener);
         values[8] = saveAttachedState(context, _validatorList);
+        values[9] = _value;
         return values;
     }
 
@@ -504,6 +505,8 @@
         _validator = (MethodBinding)restoreAttachedState(context, values[6]);
         _valueChangeListener = (MethodBinding)restoreAttachedState(context, values[7]);
         _validatorList = (List)restoreAttachedState(context, values[8]);
+        _value = values[9];
+
     }
 
 



Mime
View raw message