Examples of clearInitialState()


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

        //This case happens when @ListenerFor is attached on the component class
        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);
       
View Full Code Here

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

        //This case happens when @ListenerFor is attached on the component class
        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);
       
View Full Code Here

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

        //This case happens when @ListenerFor is attached on the component class
        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);
       
View Full Code Here

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

        //This case happens when @ListenerFor is attached on the component class
        EventListenerWrapper wrapper = new EventListenerWrapper(component, component);
       
        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);
       
View Full Code Here

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

        //This case happens when @ListenerFor is attached on the renderer class like h:outputScript or h:outputStylesheet
        EventListenerWrapper wrapper = new EventListenerWrapper(component, renderer);
       
        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);
       
View Full Code Here

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

      // Force view root to use full state saving
      // This is necessary because we recreate the view root on postback when view root caching
      // is enabled and assume that that we can apply the full state
      if (_useViewRootCache(context))
      {
        viewRoot.clearInitialState();
      }
     
      viewState = sms.saveView(context);
    }
    else
View Full Code Here

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

        // retrieveViewRootInitialState(context, oldView)
        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 javax.faces.component.UIViewRoot.clearInitialState()

          // Force view root to use full state saving
          // This is necessary because we recreate the view root on postback when view root caching
          // is enabled and assume that that we can apply the full state
          if (_useViewRootCache(context))
          {
            viewRoot.clearInitialState();
          }
         
          viewState = sms.saveView(context);
        }
        else
View Full Code Here

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

      // Force view root to use full state saving
      // This is necessary because we recreate the view root on postback when view root caching
      // is enabled and assume that that we can apply the full state
      if (_useViewRootCache(context))
      {
        viewRoot.clearInitialState();
      }
     
      viewState = sms.saveView(context);
    }
    else
View Full Code Here

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

  public void clearInitialState()
  {
    PropertyMap map = getPropertyMap(false);
    if (map != null)
      map.clearInitialState();
  }

  public boolean initialStateMarked()
  {
    PropertyMap map = getPropertyMap(false);
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.