Examples of processRestoreState()


Examples of javax.faces.component.UIViewRoot.processRestoreState()

            }
            /*
             * Restore the component state.
             */
            if (result != null && state[1] != null) {
                result.processRestoreState(context, state[1]);
            }
        }

        return result;
    }
View Full Code Here

Examples of javax.faces.component.UIViewRoot.processRestoreState()

                TreeStructureManager tsm = new TreeStructureManager();
                uiViewRoot = tsm.restoreTreeStructure(stateArray[0]);

                if (uiViewRoot != null) {
                    facesContext.setViewRoot (uiViewRoot);
                    uiViewRoot.processRestoreState(facesContext, stateArray[1]);
                }
            }           
        }
        if (log.isLoggable(Level.FINEST)) log.finest("Exiting restoreView - "+viewId);
View Full Code Here

Examples of javax.faces.component.UIViewRoot.processRestoreState()

                TreeStructureManager tsm = new TreeStructureManager();
                uiViewRoot = tsm.restoreTreeStructure(stateArray[0]);

                if (uiViewRoot != null) {
                    facesContext.setViewRoot (uiViewRoot);
                    uiViewRoot.processRestoreState(facesContext, stateArray[1]);
                }
            }           
        }
        if (log.isLoggable(Level.FINEST)) log.finest("Exiting restoreView - "+viewId);
View Full Code Here

Examples of javax.faces.component.UIViewRoot.processRestoreState()

            Object[] fullState = (Object[]) state[1];
            view = (UIViewRoot) internalRestoreTreeStructure((TreeStructComponent)fullState[0]);

            if (view != null) {
                context.setViewRoot (view);
                view.processRestoreState(context, fullState[1]);
            }
        }
        else
        {
            // Per the spec: build the view.
View Full Code Here

Examples of javax.faces.component.UIViewRoot.processRestoreState()

                                if (addedState != null)
                                {
                                    if (addedState.length == 2)
                                    {
                                        view = (UIViewRoot) internalRestoreTreeStructure((TreeStructComponent) addedState[0]);
                                        view.processRestoreState(context, addedState[1]);
                                        break;
                                    }
                                    else
                                    {
                                        final String parentClientId = (String) addedState[0];
View Full Code Here

Examples of javax.faces.component.UIViewRoot.processRestoreState()

      }
    }
    if (null != treeStructure) {
      viewRoot = (UIViewRoot) treeStructure.restore(componentLoader);
      if (null != viewRoot && null != state) {
        viewRoot.processRestoreState(context, state[0]);
        restoreAdditionalState(context, state[1]);
      }
    }
    return viewRoot;
View Full Code Here

Examples of javax.faces.component.UIViewRoot.processRestoreState()

        Object treeState = viewRoot.processSaveState(facesContext);
        UIViewRoot root = (UIViewRoot) viewRoot.getClass().newInstance();
        UIDataAdaptor restoredAdaptor = new MockDataAdaptor();

        root.getChildren().add(restoredAdaptor);
        root.processRestoreState(facesContext, treeState);
        mockState = (MockComponentState) restoredAdaptor.getComponentState();
        assertEquals(mockState.getCount(), 123);
    }

    /**
 
View Full Code Here

Examples of javax.faces.component.UIViewRoot.processRestoreState()

        UIColumn column = new UIColumn();

        restoredData.getChildren().add(column);
        column.getChildren().add(restoredAdaptor);
        root.processRestoreState(facesContext, treeState);
        restoredData.setRowIndex(0);
        mockState = (MockComponentState) restoredAdaptor.getComponentState();
        assertEquals(123, mockState.getCount());
        restoredData.setRowIndex(1);
        mockState = (MockComponentState) restoredAdaptor.getComponentState();
View Full Code Here

Examples of javax.faces.component.UIViewRoot.processRestoreState()

            view = (UIViewRoot) internalRestoreTreeStructure((TreeStructComponent)fullState[0]);

            if (view != null)
            {
                context.setViewRoot (view);
                view.processRestoreState(context, fullState[1]);
            }
        }
        else
        {
            // Per the spec: build the view.
View Full Code Here

Examples of javax.faces.component.UIViewRoot.processRestoreState()

                                {
                                    if (addedState.length == 2)
                                    {
                                        view = (UIViewRoot)
                                                internalRestoreTreeStructure((TreeStructComponent) addedState[0]);
                                        view.processRestoreState(context, addedState[1]);
                                        break;
                                    }
                                    else
                                    {
                                        final String parentClientId = (String) addedState[0];
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.