Пример #1
0
  /**
   * Call {@link PageDeclarationLanguage#renderView(javax.faces.context.FacesContext,
   * javax.faces.component.UIViewRoot)} if the view can be rendered.
   *
   * @see ViewHandler#renderView(javax.faces.context.FacesContext, javax.faces.component.UIViewRoot)
   */
  public void renderView(FacesContext context, UIViewRoot viewToRender)
      throws IOException, FacesException {

    Util.notNull("context", context);
    Util.notNull("viewToRender", viewToRender);

    pdlFactory
        .getPageDeclarationLanguage(viewToRender.getViewId())
        .renderView(context, viewToRender);
  }
Пример #2
0
  /** @see ViewHandler#getPageDeclarationLanguage(javax.faces.context.FacesContext, String) */
  @Override
  public PageDeclarationLanguage getPageDeclarationLanguage(FacesContext context, String viewId) {

    String actualViewId = derivePhysicalViewId(context, viewId);
    return pdlFactory.getPageDeclarationLanguage(actualViewId);
  }
Пример #3
0
  /**
   * Derive the actual view ID (i.e. the physical resource) and call call {@link
   * PageDeclarationLanguage#createView(javax.faces.context.FacesContext, String)}.
   *
   * @see ViewHandler#restoreView(javax.faces.context.FacesContext, String)
   */
  public UIViewRoot createView(FacesContext context, String viewId) {

    Util.notNull("context", context);
    String actualViewId = derivePhysicalViewId(context, viewId);
    return pdlFactory.getPageDeclarationLanguage(actualViewId).createView(context, actualViewId);
  }