Exemple #1
0
 /**
  * Restore state of children from local variable. Both with <code>saveChildrenState()</code> need
  * to perform correct children JSF life-cycle processing.
  */
 private void restoreChildrenState() {
   if (this.getChildCount() > 0) {
     Object childrenState = childrenStates.get(getIndex());
     if (childrenState == null) childrenState = childrenOriginalState;
     OUIData.restoreDescendantComponentStates(this.getChildren().iterator(), childrenState, true);
   }
 }
Exemple #2
0
 /**
  * Save state of children into local variable. Both with <code>restoreChildrenState()</code> need
  * to perform correct children JSF life-cycle processing.
  */
 private void saveChildrenState() {
   if (this.getChildCount() > 0) {
     Object childrenState =
         OUIData.saveDescendantComponentStates(this.getChildren().iterator(), true);
     if (getIndex() == null) childrenOriginalState = childrenState;
     else childrenStates.put(getIndex(), childrenState);
   }
 }