Package javax.faces.component

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


                Object rlcStates = !context.getResourceLibraryContracts().isEmpty() ?
                    UIComponentBase.saveAttachedState(context,
                                new ArrayList<String>(context.getResourceLibraryContracts())) : null;
                states = new Object[]{
                            internalBuildTreeStructureToSave(view),
                            view.processSaveState(context), rlcStates};
            }
            else
            {
                states = new HashMap<String, Object>();
View Full Code Here


    _removeTransientComponents(root);

    Object structure = (dontSave || !_needStructure(context))
                         ? null
                         : new Structure(root);
    Object state = dontSave ? null : root.processSaveState(context);

    if (_saveAsToken(context))
    {
      String token;
      if (applicationViewCache == null)
View Full Code Here

    _removeTransientComponents(root);

    Object structure = (dontSave || !_needStructure(context))
                         ? null
                         : new Structure(root);
    Object state = dontSave ? null : root.processSaveState(context);

    if (_saveAsToken(context))
    {
      String token;
      if (applicationViewCache == null)
View Full Code Here

    {
      // if there's no stateManagementStrategy handle saving the state ourselves
      _removeTransientComponents(viewRoot);

      Object structure = !_needStructure(context) ? null : new Structure(viewRoot);
      Object state = viewRoot.processSaveState(context);
      viewState = new Object[]{structure, state};

    }

    if (_saveAsToken(context))
View Full Code Here

    SerializedView serializedView = null;
    UIViewRoot viewRoot = context.getViewRoot();
    if (!viewRoot.isTransient()) {
      TreeStrutureNode treeState = new TreeStrutureNode();
      treeState.apply(context, viewRoot, new HashSet());
      Object state = viewRoot.processSaveState(context);
      if (isSavingStateInClient(context)) {
        serializedView = new SerializedView(treeState, state);
      } else {
        ExternalContext externalContext = context.getExternalContext();
        Object session = externalContext.getSession(true);
View Full Code Here

        if (viewRoot.isTransient())
        {
            return null;
        }

        Object serializedComponentStates = viewRoot.processSaveState(facesContext);
        //Locale is a state attribute of UIViewRoot and need not be saved explicitly
        return serializedComponentStates;
    }

    protected Object getTreeStructureToSave(FacesContext facesContext)
View Full Code Here

            if (view.getAttributes().containsKey(COMPONENT_ADDED_AFTER_BUILD_VIEW))
            {
                ensureClearInitialState(view);
                states = new Object[]{
                            internalBuildTreeStructureToSave(view),
                            view.processSaveState(context)};
            }
            else
            {
                states = new HashMap<String, Object>();
View Full Code Here

    _removeTransientComponents(root);

    Object structure = (dontSave || !_needStructure(context))
                         ? null
                         : new Structure(root);
    Object state = dontSave ? null : root.processSaveState(context);

    if (_saveAsToken(context))
    {
      String token;
      if (applicationViewCache == null)
View Full Code Here

                Object rlcStates = !context.getResourceLibraryContracts().isEmpty() ?
                    UIComponentBase.saveAttachedState(context,
                                new ArrayList<String>(context.getResourceLibraryContracts())) : null;
                states = new Object[]{
                            internalBuildTreeStructureToSave(view),
                            view.processSaveState(context), rlcStates};
            }
            else
            {
                states = new HashMap<String, Object>();
View Full Code Here

            if (view.getAttributes().containsKey(COMPONENT_ADDED_AFTER_BUILD_VIEW))
            {
                ensureClearInitialState(view);
                states = new Object[]{
                            internalBuildTreeStructureToSave(view),
                            view.processSaveState(context)};
            }
            else
            {
                states = new HashMap<String, Object>();
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.