Package javax.faces.render

Examples of javax.faces.render.Renderer.encodeBegin()


    DelegationResponseWriter delegationResponseWriter) throws IOException {

    ResponseWriter originalResponseWriter = facesContext.getResponseWriter();
    facesContext.setResponseWriter(delegationResponseWriter);
    Renderer delegateRenderer = getDelegateRenderer(facesContext);
    delegateRenderer.encodeBegin(facesContext, uiComponent);
    delegateRenderer.encodeChildren(facesContext, uiComponent);
    delegateRenderer.encodeEnd(facesContext, uiComponent);
    facesContext.setResponseWriter(originalResponseWriter);
  }
View Full Code Here


  @Override
  public void encodeBegin(FacesContext facesContext, UIComponent uiComponent) throws IOException {

    Renderer delegateRenderer = getDelegateRenderer(facesContext);
    delegateRenderer.encodeBegin(facesContext, uiComponent);
  }

  @Override
  public void encodeBegin(FacesContext facesContext, UIComponent uiComponent,
    DelegationResponseWriter delegationResponseWriter) throws IOException {
View Full Code Here

    ResponseWriter originalResponseWriter = facesContext.getResponseWriter();
    facesContext.setResponseWriter(delegationResponseWriter);

    Renderer delegateRenderer = getDelegateRenderer(facesContext);
    delegateRenderer.encodeBegin(facesContext, uiComponent);
    facesContext.setResponseWriter(originalResponseWriter);
  }

  @Override
  public void encodeChildren(FacesContext facesContext, UIComponent uiComponent) throws IOException {
View Full Code Here

    if (hasMenu(uiComponent)) {
      NodeMenuNav nodeMenuNav = NodeMenuNavFactory.getNodeMenuNav(uiComponent);
      RenderKit renderKit = facesContext.getRenderKit();
      Renderer nodeMenuNavRenderer = renderKit.getRenderer(nodeMenuNav.getFamily(),
          nodeMenuNav.getRendererType());
      nodeMenuNavRenderer.encodeBegin(facesContext, (UIComponent) nodeMenuNav);
    }
    else {

      ResponseWriter responseWriter = facesContext.getResponseWriter();
View Full Code Here

                Renderer renderer = getRenderer(context);
                if (renderer != null)
                {
                    // If a Renderer is associated with this UIComponent, the actual encoding will be delegated to
                    // Renderer.encodeBegin(FacesContext, UIComponent).
                    renderer.encodeBegin(context, this);
                }
            }
        }
        finally
        {
View Full Code Here

    _cacheRenderer(context);
    Renderer renderer = getRenderer(context);
    // if there is a Renderer for this component
    if (renderer != null)
    {
      renderer.encodeBegin(context, this);
    }
  }

  @Override
  public void encodeChildren(FacesContext context) throws IOException
View Full Code Here

        String rendererType = getRendererType();
        if (rendererType != null) {
            Renderer renderer = this.getRenderer(context);
            if (renderer != null) {
                renderer.encodeBegin(context, this);
            } else {
                if (LOGGER.isLoggable(Level.FINE)) {
                    LOGGER.fine("Can't get Renderer for type " + rendererType);
                }
            }
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.