Package org.primefaces.component

Examples of org.primefaces.component.PartialViewRoot


  /**
   * Restore to original for rendering
   */
  private void restorePartialView(FacesContext facesContext) {
    PartialViewRoot partialView = (PartialViewRoot) facesContext.getViewRoot();

    partialView.restoreBase();
    facesContext.setViewRoot(partialView.getBase());
    partialView = null;
  }
View Full Code Here


    return PhaseId.RESTORE_VIEW;
  }
 
  private void buildPartialView(FacesContext facesContext, String processIds) {
    UIViewRoot originalView = facesContext.getViewRoot();
    PartialViewRoot partialView = new PartialViewRoot(originalView);
    facesContext.setViewRoot(partialView);
   
    if(processIds.equals("@none")) {
      return;
    }
View Full Code Here

  /**
   * Restore to original for rendering
   */
  private void restorePartialView(FacesContext facesContext) {
    PartialViewRoot partialView = (PartialViewRoot) facesContext.getViewRoot();
   
    for (int i = 0; i < partialView.getChildCount(); i++) {
      UIComponent kid = partialView.getChildren().get(i);
      kid.setParent(partialView.getParents().get(i));
    }
   
    facesContext.setViewRoot(partialView.getBase())
    partialView = null;
  }
View Full Code Here

TOP

Related Classes of org.primefaces.component.PartialViewRoot

Copyright © 2018 www.massapicom. 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.