Exemple #1
0
  /**
   * Call {@link ViewDeclarationLanguage#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);

    vdlFactory
        .getViewDeclarationLanguage(viewToRender.getViewId())
        .renderView(context, viewToRender);
  }
Exemple #2
0
  /** @see ViewHandler#getViewDeclarationLanguage(javax.faces.context.FacesContext, String) */
  @Override
  public ViewDeclarationLanguage getViewDeclarationLanguage(FacesContext context, String viewId) {

    String actualViewId = derivePhysicalViewId(context, viewId, false);
    return vdlFactory.getViewDeclarationLanguage(actualViewId);
  }
Exemple #3
0
  /**
   * Derive the actual view ID (i.e. the physical resource) and call call {@link
   * ViewDeclarationLanguage#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, false);
    return vdlFactory.getViewDeclarationLanguage(actualViewId).createView(context, actualViewId);
  }