You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2006/09/19 07:33:21 UTC
svn commit: r447747 -
/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/savestate/UISaveState.java
Author: mmarinschek
Date: Mon Sep 18 22:33:20 2006
New Revision: 447747
URL: http://svn.apache.org/viewvc?view=rev&rev=447747
Log:
fix for [TOMAHAWK-509] t:saveState does not check to see if the value attribute implements StateHolder.
Modified:
myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/savestate/UISaveState.java
Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/savestate/UISaveState.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/savestate/UISaveState.java?view=diff&rev=447747&r1=447746&r2=447747
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/savestate/UISaveState.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/savestate/UISaveState.java Mon Sep 18 22:33:20 2006
@@ -16,6 +16,7 @@
package org.apache.myfaces.custom.savestate;
import javax.faces.component.UIParameter;
+import javax.faces.component.ValueHolder;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
@@ -62,7 +63,7 @@
{
Object values[] = new Object[2];
values[0] = super.saveState(context);
- values[1] = getValue();
+ values[1] = saveAttachedState(context, getValue());
return values;
}
@@ -70,7 +71,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)
{