Author: nbelaevski
Date: 2008-01-16 12:09:26 -0500 (Wed, 16 Jan 2008)
New Revision: 5433
Modified:
trunk/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java
Log:
Added missing save/restore attached states for lists values
Modified: trunk/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java
===================================================================
---
trunk/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java 2008-01-16
17:09:22 UTC (rev 5432)
+++
trunk/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java 2008-01-16
17:09:26 UTC (rev 5433)
@@ -118,10 +118,10 @@
public void restoreState(FacesContext context, UIListShuttle list, Object _state) {
Object[] state = (Object[]) _state;
- sourceValue = state[0];
+ sourceValue = restoreAttachedState(context, state[0]);
sourceValueSet = Boolean.TRUE.equals(state[1]);
- targetValue = state[2];
+ targetValue = restoreAttachedState(context, state[2]);
targetValueSet = Boolean.TRUE.equals(state[3]);
sourceSelection = (Collection) restoreAttachedState(context, state[4]);
@@ -169,10 +169,10 @@
Object[] state = new Object[10];
- state[0] = sourceValue;
+ state[0] = saveAttachedState(context, sourceValue);
state[1] = sourceValueSet ? Boolean.TRUE : Boolean.FALSE;
- state[2] = targetValue;
+ state[2] = saveAttachedState(context, targetValue);
state[3] = targetValueSet ? Boolean.TRUE : Boolean.FALSE;
state[4] = saveAttachedState(context, sourceSelection);
Show replies by date