Examples of processRestoreState()


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

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()

    root = (UIViewRoot)
      ((Structure) structure).createComponent();

    if (state != null)
      root.processRestoreState(context, state);

    return root;
 

  @SuppressWarnings("unchecked")
View Full Code Here

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

        _LOG.severe("NO_STRUCTURE_ROOT_AVAILABLE");
        return null;
      }

      if (state != null)
        root.processRestoreState(context, state);

      return root;
    }
    else
    {
View Full Code Here

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

      {
        UIViewRoot root = (UIViewRoot)
        ((Structure) structure).createComponent();

        if (state != null)
          root.processRestoreState(context, state);
       
        if (recalculateLocale)
        {
          // Ensure that locale gets re-calculated when next fetched.
          root.setLocale((Locale) null);
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]);
               
                // If the view is restored fully, it is necessary to refresh RequestViewContext, otherwise at
                // each ajax request new components associated with @ResourceDependency annotation will be added
                // to the tree, making the state bigger without real need.
                RequestViewContext.getCurrentInstance(context).
View Full Code Here

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

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

                if (uiViewRoot != null)
                {
                    facesContext.setViewRoot (uiViewRoot);
                    uiViewRoot.processRestoreState(facesContext, stateArray[1]);
                   
                    RequestViewContext.getCurrentInstance(facesContext).refreshRequestViewContext(
                            facesContext, uiViewRoot);
                }
            }           
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.