Package javax.faces.component

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


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

            if (uiViewRoot != null) {
                uiViewRoot.processRestoreState(facesContext, stateArray[1]);
            }
        }

        if (log.isTraceEnabled()) log.trace("Exiting restoreView - "+viewId);
View Full Code Here


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

            if (uiViewRoot != null) {
                uiViewRoot.processRestoreState(facesContext, stateArray[1]);
            }
        }

        if (log.isTraceEnabled()) log.trace("Exiting restoreView - "+viewId);
View Full Code Here

            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

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

                if (uiViewRoot != null)
                {
                    facesContext.setViewRoot (uiViewRoot);
                    uiViewRoot.processRestoreState(facesContext, stateArray[1]);
                }
            }           
        }
        if (log.isLoggable(Level.FINEST))
        {
View Full Code Here

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

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

    return root;
 

  @SuppressWarnings({"unchecked", "deprecation"})
View Full Code Here

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

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

      return root;
    }
    else
    {
View Full Code Here

      {
        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

            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

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

            if (uiViewRoot != null) {
                uiViewRoot.processRestoreState(facesContext, stateArray[1]);
            }
        }

        if (log.isTraceEnabled()) log.trace("Exiting restoreView - "+viewId);
View Full Code Here

                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

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.