Examples of ExtendedRenderKitService


Examples of org.apache.myfaces.trinidad.render.ExtendedRenderKitService

  static private void _encodeServiceScripts(
    FacesContext context
    ) throws IOException
  {
    ExtendedRenderKitService service =
      Service.getRenderKitService(context, ExtendedRenderKitService.class);
    if (service != null)
    {
      service.encodeScripts(context);
    }
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.render.ExtendedRenderKitService

    _facesContext.setResponseWriter(xml);
    try
    {
      // And also encode ExtendedRenderKitService scripts.  (ERKS
      // renders its own script wrapper element.)
      ExtendedRenderKitService erks =
        Service.getService(_facesContext.getRenderKit(),
                           ExtendedRenderKitService.class);
      if (erks != null)
        erks.encodeScripts(_facesContext);
    }
    finally
    {
      _facesContext.setResponseWriter(old);
    }
View Full Code Here

Examples of org.apache.myfaces.trinidad.render.ExtendedRenderKitService

      reqMap.put(_RENDER_VIEW_MARKER, Boolean.TRUE);
    }

    // See if there is a possiblity of short-circuiting the current
    // Render Response
    ExtendedRenderKitService service = _getExtendedRenderKitService(context);
    if ((service != null) &&
        service.shortCircuitRenderView(context))
    {
      // Yup, we don't need to do anything
      ;
    }
    else
    {
      try
      {
        if (service != null)
          service.encodeBegin(context);

        InternalView internal = _getInternalView(context,
                                                 viewToRender.getViewId());
        if (internal != null)
        {
          internal.renderView(context, viewToRender);
        }
        else
        {
          super.renderView(context, viewToRender);
        }

        if (service != null)
          service.encodeEnd(context);
      }
      finally
      {
        if (service != null)
          service.encodeFinally(context);
      }
    }
   
    // Remove the 'marker' from the request map just in case the entire tree is rendered again
    reqMap.remove(_RENDER_VIEW_MARKER);
View Full Code Here

Examples of org.apache.myfaces.trinidad.render.ExtendedRenderKitService

    // As internal views whether they're stateless.  If they are, don't
    // bother writing anything out.
    if ((internal != null) && internal.isStateless(context, viewId))
      return;

    ExtendedRenderKitService service = _getExtendedRenderKitService(context);
    if ((service != null) &&
        service.isStateless(context))
      return;

    super.writeState(context);
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.render.ExtendedRenderKitService

    _facesContext.setResponseWriter(xml);
    try
    {
      // And also encode ExtendedRenderKitService scripts.  (ERKS
      // renders its own script wrapper element.)
      ExtendedRenderKitService erks =
        Service.getService(_facesContext.getRenderKit(),
                           ExtendedRenderKitService.class);
      if (erks != null)
        erks.encodeScripts(_facesContext);
    }
    finally
    {
      _facesContext.setResponseWriter(old);
    }
View Full Code Here

Examples of org.apache.myfaces.trinidad.render.ExtendedRenderKitService

      reqMap.put(_RENDER_VIEW_MARKER, Boolean.TRUE);
    }

    // See if there is a possiblity of short-circuiting the current
    // Render Response
    ExtendedRenderKitService service = _getExtendedRenderKitService(context);
    if ((service != null) &&
        service.shortCircuitRenderView(context))
    {
      // Yup, we don't need to do anything
      ;
    }
    else
    {
      try
      {
        if (service != null)
          service.encodeBegin(context);
       
        super.renderView(context, viewToRender);

        if (service != null)
          service.encodeEnd(context);
      }
      finally
      {
        if (service != null)
          service.encodeFinally(context);
      }
    }
   
    // Remove the 'marker' from the request map just in case the entire tree is rendered again
    reqMap.remove(_RENDER_VIEW_MARKER);
View Full Code Here

Examples of org.apache.myfaces.trinidad.render.ExtendedRenderKitService

      {
        return;
      }
    }
   
    ExtendedRenderKitService service = _getExtendedRenderKitService(context);
    if ((service != null) &&
        service.isStateless(context))
      return;

    super.writeState(context);
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.render.ExtendedRenderKitService

      UIViewRoot root = RenderKitBootstrap.createUIViewRoot(_facesContext);
      root.setRenderKitId(getRenderKitId());
      _facesContext.setViewRoot(root);

      ExtendedRenderKitService service =
        _getExtendedRenderKitService(_facesContext);

      if (service != null)
        service.encodeBegin(_facesContext);
       
    }
View Full Code Here

Examples of org.apache.myfaces.trinidad.render.ExtendedRenderKitService

    }

    @Override
    protected void tearDown() throws IOException 
    {
      ExtendedRenderKitService service =
        _getExtendedRenderKitService(_facesContext);
      if (service != null)
      {
        service.encodeEnd(_facesContext);
        service.encodeFinally(_facesContext);
      }

      MFacesContext.clearContext();
      _requestContext.release();
View Full Code Here

Examples of org.apache.myfaces.trinidad.render.ExtendedRenderKitService


  static private void _encodeServiceScripts(FacesContext context)
    throws IOException
  {
    ExtendedRenderKitService service =
      Service.getRenderKitService(context, ExtendedRenderKitService.class);
    if (service != null)
    {
      service.encodeScripts(context);
    }
  }
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.