Package javax.faces.component

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


        UIViewRoot newRoot = (UIViewRoot)
          fc.getApplication().createComponent(UIViewRoot.COMPONENT_TYPE);
       
        // must call restoreState so that we setup attributes, listeners,
        // uniqueIds, etc ...
        newRoot.restoreState(fc, viewRootState);

        // we need to use a temp list because as a side effect of
        // adding a child to a UIComponent, that child is removed from
        // the parent UIComponent. So the following will break:
        // newRoot.getChildren().addAll(root.getChildren());
View Full Code Here


        UIViewRoot newRoot = (UIViewRoot)
          fc.getApplication().getViewHandler().createView(fc, root.getViewId());
       
        // must call restoreState so that we setup attributes, listeners,
        // uniqueIds, etc ...
        newRoot.restoreState(fc, viewRootState);

        // we need to use a temp list because as a side effect of
        // adding a child to a UIComponent, that child is removed from
        // the parent UIComponent. So the following will break:
        // newRoot.getChildren().addAll(root.getChildren());
View Full Code Here

        }


        // must call restoreState so that we setup attributes, listeners,
        // uniqueIds, etc ...
        newRoot.restoreState(fc, viewRootState);

        // we need to use a temp list because as a side effect of
        // adding a child to a UIComponent, that child is removed from
        // the parent UIComponent. So the following will break:
        // newRoot.getChildren().addAll(root.getChildren());
View Full Code Here

        UIViewRoot newRoot = (UIViewRoot)
          fc.getApplication().createComponent(UIViewRoot.COMPONENT_TYPE);
       
        // must call restoreState so that we setup attributes, listeners,
        // uniqueIds, etc ...
        newRoot.restoreState(fc, viewRootState);

        // we need to use a temp list because as a side effect of
        // adding a child to a UIComponent, that child is removed from
        // the parent UIComponent. So the following will break:
        // newRoot.getChildren().addAll(root.getChildren());
View Full Code Here

  UIViewRoot root = facesContext.getApplication().getViewHandler().createView(facesContext, null);
        facesContext.setViewRoot(root);
  Object state = root.saveState(facesContext);
  root = facesContext.getApplication().getViewHandler().createView(facesContext, null);
        facesContext.setViewRoot(root);
  root.restoreState(facesContext, state);

  doTestPhaseMethodExpression(root, false);
    }

    public void testPhaseListenerState() throws Exception {
View Full Code Here

  UIViewRoot root = facesContext.getApplication().getViewHandler().createView(facesContext, null);
        facesContext.setViewRoot(root);
  Object state = root.saveState(facesContext);
  root = facesContext.getApplication().getViewHandler().createView(facesContext, null);
        facesContext.setViewRoot(root);
  root.restoreState(facesContext, state);

  doTestPhaseListener(root, false);
    }

    public void testPhaseMethodExpressionAndListenerState() throws Exception {
View Full Code Here

  UIViewRoot root = facesContext.getApplication().getViewHandler().createView(facesContext, null);
        facesContext.setViewRoot(root);
  Object state = root.saveState(facesContext);
  root = facesContext.getApplication().getViewHandler().createView(facesContext, null);
        facesContext.setViewRoot(root);
  root.restoreState(facesContext, state);

  doTestPhaseMethodExpressionAndListener(root, false);
    }

View Full Code Here

    public void testPhaseMethExpressionState() throws Exception {
  UIViewRoot root = facesContext.getApplication().getViewHandler().createView(facesContext, null);
  Object state = root.saveState(facesContext);
  root = facesContext.getApplication().getViewHandler().createView(facesContext, null);
  root.restoreState(facesContext, state);

  doTestPhaseMethodExpression(root, false);
    }

    public void testPhaseListenerState() throws Exception {
View Full Code Here

    public void testPhaseListenerState() throws Exception {
  UIViewRoot root = facesContext.getApplication().getViewHandler().createView(facesContext, null);
  Object state = root.saveState(facesContext);
  root = facesContext.getApplication().getViewHandler().createView(facesContext, null);
  root.restoreState(facesContext, state);

  doTestPhaseListener(root, false);
    }

    public void testPhaseMethodExpressionAndListenerState() throws Exception {
View Full Code Here

    public void testPhaseMethodExpressionAndListenerState() throws Exception {
  UIViewRoot root = facesContext.getApplication().getViewHandler().createView(facesContext, null);
  Object state = root.saveState(facesContext);
  root = facesContext.getApplication().getViewHandler().createView(facesContext, null);
  root.restoreState(facesContext, state);

  doTestPhaseMethodExpressionAndListener(root, false);
    }

    public void testPhaseListenerExceptions() throws Exception {
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.