Author: nbelaevski
Date: 2008-01-16 12:09:22 -0500 (Wed, 16 Jan 2008)
New Revision: 5432
Modified:
trunk/ui/orderingList/src/main/java/org/richfaces/component/UIOrderingList.java
Log:
Added missing save/restore attached states for lists values
Modified: trunk/ui/orderingList/src/main/java/org/richfaces/component/UIOrderingList.java
===================================================================
---
trunk/ui/orderingList/src/main/java/org/richfaces/component/UIOrderingList.java 2008-01-16
17:01:15 UTC (rev 5431)
+++
trunk/ui/orderingList/src/main/java/org/richfaces/component/UIOrderingList.java 2008-01-16
17:09:22 UTC (rev 5432)
@@ -168,7 +168,7 @@
public void restoreState(FacesContext context, UIOrderingList list, Object _state) {
Object[] state = (Object[]) _state;
- value = state[0];
+ value = restoreAttachedState(context, state[0]);
selection = (Collection) restoreAttachedState(context, state[1]);
selectionSet = Boolean.TRUE.equals(state[2]);
@@ -209,7 +209,7 @@
Object[] state = new Object[5];
- state[0] = value;
+ state[0] = saveAttachedState(context, value);
state[1] = saveAttachedState(context, selection);
state[2] = this.selectionSet ? Boolean.TRUE : Boolean.FALSE;