Package javax.faces.component

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


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

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

    return root;
  }

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

        _LOG.finer("Restored state for view \"{0}\"", viewId);
        return root;
      }
      catch (ClassNotFoundException cnfe)
View Full Code Here

        else
        {
            rebuildStateTree = rebuildStateTree((TreeStructComponent)template);
        }

        uiViewRoot.processRestoreState(facesContext,rebuildStateTree);

        if (uiViewRoot.getRenderKitId() == null)
        {
            //Just to be sure...
            uiViewRoot.setRenderKitId(renderKitId);
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

                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

            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(((Object[])stateArray[0])[0]);

                if (uiViewRoot != null)
                {
                    facesContext.setViewRoot (uiViewRoot);
                    uiViewRoot.processRestoreState(facesContext, stateArray[1]);
                   
                    RequestViewContext.getCurrentInstance(facesContext).refreshRequestViewContext(
                            facesContext, uiViewRoot);
                   
                    // If state is saved fully, there outer f:view tag handler will not be executed,
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

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.