Author: maksimkaszynski
Date: 2007-07-23 09:56:20 -0400 (Mon, 23 Jul 2007)
New Revision: 1780
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/component/UIDataAdaptor.java
Log:
persisted state of child inputs of data adaptor. reset after updates
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/component/UIDataAdaptor.java
===================================================================
---
trunk/framework/impl/src/main/java/org/ajax4jsf/component/UIDataAdaptor.java 2007-07-23
13:26:10 UTC (rev 1779)
+++
trunk/framework/impl/src/main/java/org/ajax4jsf/component/UIDataAdaptor.java 2007-07-23
13:56:20 UTC (rev 1780)
@@ -925,7 +925,6 @@
protected void processDecodes(FacesContext faces, Object argument) {
if (!this.isRendered())
return;
- this.resetComponent(faces);
this.iterate(faces, decodeVisitor, argument);
this.decode(faces);
}
@@ -964,10 +963,13 @@
SerializableDataModel serializableModel = (SerializableDataModel) dataModel;
serializableModel.update();
}
+
+
}
public void processUpdates(FacesContext faces) {
processUpdates(faces, null);
+ resetComponent(faces);
}
protected void processValidators(FacesContext faces, Object argument) {
@@ -1223,6 +1225,9 @@
public String rowKeyVar;
public String stateVar;
+
+ private Map childStates;
+
}
@@ -1259,6 +1264,7 @@
this._statesMap = new HashMap();
this._rowKeyVar = state.rowKeyVar;
this._stateVar = state.stateVar;
+ this.childState = state.childStates;
// Restore serializable models and component states for all rows of
// parent UIData ( single if this
// component not child of iterable )
@@ -1288,6 +1294,7 @@
state.ajaxKeys = this._ajaxKeys;
state.rowKeyVar = this._rowKeyVar;
state.stateVar = this._stateVar;
+ state.childStates = this.childState;
Set encodedIds = getEncodedIds();
// Save all states of component and data model for all valies of
// clientId, encoded in this request.
Show replies by date