@Override @Deprecated public Object getComponentStateToRestore(FacesContext context) { return getWrapped().getComponentStateToRestore(context); }
/** * @since 1.2 */ public Object getState(FacesContext context, String viewId) { Object[] structureAndState = new Object[2]; structureAndState[0] = getTreeStructureToRestore(context, viewId); structureAndState[1] = getComponentStateToRestore(context); return structureAndState; }
/** * @since 1.2 */ public Object getState(FacesContext context, String viewId) { Object[] structureAndState = new Object[2]; structureAndState[0] = getTreeStructureToRestore(context, viewId); structureAndState[1] = getComponentStateToRestore(context); return structureAndState; }
/** * <p>The implementation must inspect the current request and return * an Object representing the tree structure and component state * passed in to a previous invocation of {@link * #writeState(javax.faces.context.FacesContext,java.lang.Object)}.</p> * * <p>For backwards compatability with existing * <code>ResponseStateManager</code> implementations, the default * implementation of this method calls {@link * #getTreeStructureToRestore} and {@link * #getComponentStateToRestore} and creates and returns a two * element <code>Object</code> array with element zero containing * the <code>structure</code> property and element one containing * the <code>state</code> property of the * <code>SerializedView</code>.</p> * * @since 1.2 * * @param context The {@link FacesContext} instance for the current request * @param viewId View identifier of the view to be restored * * @return the tree structure and component state Object passed in * to <code>writeState</code>. If this is an initial request, this * method returns <code>null</code>. */ public Object getState(FacesContext context, String viewId) { Object stateArray[] = { getTreeStructureToRestore(context, viewId), getComponentStateToRestore(context) }; return stateArray; }
/** * <p>The implementation must inspect the current request and return * an Object representing the tree structure and component state * passed in to a previous invocation of {@link * #writeState(javax.faces.context.FacesContext,java.lang.Object)}.</p> * * <p>For backwards compatability with existing * <code>ResponseStateManager</code> implementations, the default * implementation of this method calls {@link * #getTreeStructureToRestore} and {@link * #getComponentStateToRestore} and creates and returns a two * element <code>Object</code> array with element zero containing * the <code>structure</code> property and element one containing * the <code>state</code> property of the * <code>SerializedView</code>.</p> * * @since 1.2 * * @param context The {@link FacesContext} instance for the current request * @param viewId View identifier of the view to be restored * * @return the tree structure and component state Object passed in * to <code>writeState</code>. If this is an initial request, this * method returns <code>null</code>. */ public Object getState(FacesContext context, String viewId) { Object stateArray[] = { getTreeStructureToRestore(context, viewId), getComponentStateToRestore(context) }; return stateArray; }
getComponentStateToRestore(context) }; return stateArray;
protected void restoreComponentStateFromClient(FacesContext context, UIViewRoot viewRoot, String renderKitId) { ResponseStateManager responseStateManager = ResponseStateManagerUtil .getResponseStateManager(context, renderKitId); Object state = responseStateManager.getComponentStateToRestore(context); viewRoot.processRestoreState(context, state); }
getComponentStateToRestore(context) }; return stateArray;
getComponentStateToRestore(context) }; return stateArray;
protected void restoreComponentStateFromClient(final FacesContext context, final UIViewRoot viewRoot, final String renderKitId) { final ResponseStateManager responseStateManager = getResponseStateManager( context, renderKitId); final Object state = responseStateManager .getComponentStateToRestore(context); viewRoot.processRestoreState(context, state); }
getComponentStateToRestore(context) }; return stateArray;
getComponentStateToRestore(context) }; return stateArray;
getComponentStateToRestore(context) }; return stateArray;
getComponentStateToRestore(context) }; return stateArray;
getComponentStateToRestore(context) }; return stateArray;
@SuppressWarnings("deprecation") private void restoreState(FacesContext context, UIViewRoot root, String renderKitId) { ResponseStateManager rsm = RenderKitUtils.getResponseStateManager(context, renderKitId); Object state; if (ReflectionUtils.lookupMethod(rsm.getClass(), "getState", FacesContext.class, String.class) != null) { Object[] stateArray = (Object[]) rsm.getState(context, root.getViewId()); state = stateArray[1]; } else { state = rsm.getComponentStateToRestore(context); } root.processRestoreState(context, state); }
serializedComponentStates = responseStateManager.getComponentStateToRestore(facesContext);
serializedComponentStates = responseStateManager.getComponentStateToRestore(facesContext);
serializedComponentStates = responseStateManager.getComponentStateToRestore(facesContext);