protected void saveDescendantState() { FacesContext context = getFacesContext(); for (Iterator itr = getChildren().iterator(); itr.hasNext();) { UIComponent child = (UIComponent) itr.next(); if (child instanceof UIColumn) { saveDescendantState(child, context); } } }
/** * <p>Save state information for all descendant components, as described for * <code>setRowIndex()</code>.</p> */ private void saveDescendantState() { FacesContext context = getFacesContext(); if (getChildCount() > 0) { for (UIComponent kid : getChildren()) { if (kid instanceof UIColumn) { saveDescendantState(kid, context); } } } }
/** * <p>Save state information for all descendant components, as described for * <code>setRowIndex()</code>.</p> */ private void saveDescendantState() { FacesContext context = getFacesContext(); if (getChildCount() > 0) { for (UIComponent kid : getChildren()) { if (kid instanceof UIColumn) { saveDescendantState(kid, context); } } } }
/** * <p>Save state information for all descendant components, as described for * <code>setRowIndex()</code>.</p> */ private void saveDescendantState() { FacesContext context = getFacesContext(); if (getChildCount() > 0) { for (UIComponent kid : getChildren()) { if (kid instanceof UIColumn) { saveDescendantState(kid, context); } } } }
/** * <p>Save state information for all descendant components, as described for * <code>setRowIndex()</code>.</p> */ private void saveDescendantState() { FacesContext context = getFacesContext(); if (getChildCount() > 0) { for (UIComponent kid : getChildren()) { if (kid instanceof UIColumn) { saveDescendantState(kid, context); } } } }
/** * <p>Save state information for all descendant components, as described for * <code>setRowIndex()</code>.</p> */ private void saveDescendantState() { FacesContext context = getFacesContext(); if (getChildCount() > 0) { for (UIComponent kid : getChildren()) { if (kid instanceof UIColumn) { saveDescendantState(kid, context); } } } }
/** * <p>Save state information for all descendant components, as described for * <code>setRowIndex()</code>.</p> */ private void saveDescendantState() { FacesContext context = getFacesContext(); if (getChildCount() > 0) { for (UIComponent kid : getChildren()) { if (kid instanceof UIColumn) { saveDescendantState(kid, context); } } } }
/** * <p>Save state information for all descendant components, as described for * <code>setRowIndex()</code>.</p> */ private void saveDescendantState() { FacesContext context = getFacesContext(); if (getChildCount() > 0) { for (UIComponent kid : getChildren()) { if (kid instanceof UIColumn) { saveDescendantState(kid, context); } } } }
/** * <p>Save state information for all descendant components, as described for * <code>setRowIndex()</code>.</p> */ private void saveDescendantState() { FacesContext context = getFacesContext(); if (getChildCount() > 0) { for (UIComponent kid : getChildren()) { if (kid instanceof UIColumn) { saveDescendantState(kid, context); } } } }
/** * <p>Save state information for all descendant components, as described for * <code>setRowIndex()</code>.</p> */ private void saveDescendantState() { FacesContext context = getFacesContext(); if (getChildCount() > 0) { for (UIComponent kid : getChildren()) { if (kid instanceof UIColumn) { saveDescendantState(kid, context); } } } }
/** * <p>Save state information for all descendant components, as described for * <code>setRowIndex()</code>.</p> */ private void saveDescendantState() { FacesContext context = getFacesContext(); if (getChildCount() > 0) { for (UIComponent kid : getChildren()) { if (kid instanceof UIColumn) { saveDescendantState(kid, context); } } } }
public void setRowIndex(int rowIndex) { saveDescendantState(); this.rowIndex = rowIndex; DataModel model = getDataModel(); model.setRowIndex(rowIndex); String var = getVar(); if (var != null) { Map requestMap = getFacesContext().getExternalContext() .getRequestMap(); if (rowIndex == -1) { requestMap.remove(var); } else if (isRowAvailable()) { requestMap.put(var, getRowData()); } else { requestMap.remove(var); } } restoreDescendantState(); }
private void setRowIndexWithoutRowStatePreserved(int rowIndex){ saveDescendantState();
private void setRowIndexWithoutRowStatePreserved(int rowIndex){ saveDescendantState();
private void setRowIndexWithoutRowStatePreserved(int rowIndex){ saveDescendantState();
private void setRowIndexWithoutRowStatePreserved(int rowIndex){ saveDescendantState();
private void setRowIndexWithoutRowStatePreserved(int rowIndex){ saveDescendantState();
private void setRowIndexWithoutRowStatePreserved(int rowIndex){ saveDescendantState();
private void setRowIndexWithoutRowStatePreserved(int rowIndex){ saveDescendantState();
saveDescendantState(uiComponent, context); saveDescendantState(facet, context);