You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by gr...@apache.org on 2005/07/08 18:12:00 UTC

svn commit: r209834 - /myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/savestate/UISaveState.java

Author: grantsmith
Date: Fri Jul  8 09:11:58 2005
New Revision: 209834

URL: http://svn.apache.org/viewcvs?rev=209834&view=rev
Log:
MYFACES-313: Patch to allow UISaveState to use saveAttachedState to allow the user implement StateHolder for values. Submitted by Mathias Broekelmann.

Modified:
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/savestate/UISaveState.java

Modified: myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/savestate/UISaveState.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/savestate/UISaveState.java?rev=209834&r1=209833&r2=209834&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/savestate/UISaveState.java (original)
+++ myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/savestate/UISaveState.java Fri Jul  8 09:11:58 2005
@@ -1,12 +1,12 @@
 /*
  * Copyright 2004 The Apache Software Foundation.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -32,7 +32,7 @@
     {
         Object values[] = new Object[2];
         values[0] = super.saveState(context);
-        values[1] = getValue();
+        values[1] = saveAttachedState(context, getValue());
         return ((Object) (values));
     }
 
@@ -40,7 +40,7 @@
     {
         Object values[] = (Object[])state;
         super.restoreState(context, values[0]);
-        Object value = values[1];
+        Object value = restoreAttachedState(context, values[1]);
         ValueBinding vb = getValueBinding("value");
         if (vb != null)
         {