Examples of saveState()


Examples of javax.faces.component.StateHolder.saveState()

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

            return new _AttachedStateWrapper(attachedObject.getClass(), holder.saveState(context));
        }       
        else if (attachedObject instanceof List)
        {
            List<Object> lst = new ArrayList<Object>(((List<?>) attachedObject).size());
            for (Object item : (List<?>) attachedObject)
View Full Code Here

Examples of javax.faces.component.StateHolder.saveState()

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

            return new _AttachedStateWrapper(attachedObject.getClass(), holder.saveState(context));
        }       
        else if (attachedObject instanceof List)
        {
            List<Object> lst = new ArrayList<Object>(((List<?>) attachedObject).size());
            for (Object item : (List<?>) attachedObject)
View Full Code Here

Examples of javax.faces.component.UIComponent.saveState()

                        facesContext, childsIterator, true);
                Object state = null;
                if (child.initialStateMarked())
                {
                    child.clearInitialState();
                    state = child.saveState(facesContext);
                    child.markInitialState();
                }
                else
                {
                    state = child.saveState(facesContext);
View Full Code Here

Examples of javax.faces.component.UIComponent.EventListenerWrapper.saveState()

        EventListenerWrapper wrapper = new EventListenerWrapper(component, listener);
       
        wrapper.markInitialState();
       
        wrapper.clearInitialState();
        Object state = wrapper.saveState(facesContext);

        //In this case state should not be null, because state should be saved fully
        assertNotNull(state);
       
        EventListenerWrapper wrapper2 = new EventListenerWrapper(component, listener);
View Full Code Here

Examples of javax.faces.component.UIForm.saveState()

    public void testSaveState() throws Exception {
        UIForm form = new UIForm();
        form.getAttributes().put("foo", "bar");
        form.setPrependId(true);
        Object state = form.saveState(facesContext);
        form = new UIForm();
        form.restoreState(facesContext, state);
        assertTrue("bar".equals(form.getAttributes().get("foo")));
        assertTrue(form.isPrependId());
    }
View Full Code Here

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

        Object viewState = metadata.getViewRootState();
        if (viewState == null)
        {
            // (Optional, it should be always metadata)
            oldView.clearInitialState();
            viewState = oldView.saveState(context);
        }
        boolean oldProcessingEvents = context.isProcessingEvents();
        context.setProcessingEvents(false);
        try
        {
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.sql.SQLConnectionState.saveState()

      SQLConnectionState connState = new SQLConnectionState();
      if (_conn != null)
      {
         try
         {
            connState.saveState(_conn, getProperties(), _msgHandler);
         }
         catch (SQLException ex)
         {
            s_log.error("Unexpected SQLException", ex);
         }
View Full Code Here

Examples of org.apache.myfaces.trinidad.bean.PropertyMap.saveState()

  public Object saveState(FacesContext context)
  {
    PropertyMap map = getPropertyMap(false);
    if (map != null)
      return map.saveState(context);
    return null;
  }

  public void restoreState(
    FacesContext context,
View Full Code Here

Examples of org.apache.myfaces.trinidad.bean.PropertyMap.saveState()

  public Object saveState(FacesContext context)
  {
    PropertyMap map = getPropertyMap(false);
    if (map != null)
      return map.saveState(context);
    return null;
  }

  public void restoreState(
    FacesContext context,
View Full Code Here

Examples of org.apache.myfaces.trinidad.util.RequestStateMap.saveState()

            _endConfiguratorServiceRequest(ec);
          }
        }
        finally
        {
          state.saveState(ec);
          _releaseRequestContext(ec);
        }
      }
      state.remove(_REQUEST_TYPE);
    }
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.