oracle.adf.view.faces.render
Interface ExtendedRenderKitService


public interface ExtendedRenderKitService

Service implemented by RenderKits that provide further support for per-page rendering actions, like including scripts global to a page or short-circuiting rendering altogether. Developers should always retrieve an instance using Service.getService(java.lang.Object, java.lang.Class), passing in the current RenderKit.

    RenderKit rk = facesContext.getRenderKit();
    ExtendedRenderKitService service = (ExtendedRenderKitService)
      Service.getService(rk, ExtendedRenderKitService.class);
 


Method Summary
 void encodeBegin(FacesContext context)
          Called when the encoding of a page begins.
 void encodeEnd(FacesContext context)
          Called when the encoding of a page ends, if there were no exceptions.
 void encodeFinally(FacesContext context)
          Called when the encoding of a page completes, whether or not there were exceptions.
 void encodeScripts(FacesContext context)
          Output any needed scripts required by the RenderKit for this page.
 boolean shortCircuitRenderView(FacesContext context)
          Called to short-circuit rendering the view.
 

Method Detail

encodeScripts

public void encodeScripts(FacesContext context)
                   throws java.io.IOException
Output any needed scripts required by the RenderKit for this page.

Throws:
java.io.IOException

shortCircuitRenderView

public boolean shortCircuitRenderView(FacesContext context)
                               throws java.io.IOException
Called to short-circuit rendering the view. A ViewHandler should call this method before rendering the view (for example, before forwarding to a JSP), and if it returns true, do nothing further.

Throws:
java.io.IOException

encodeBegin

public void encodeBegin(FacesContext context)
                 throws java.io.IOException
Called when the encoding of a page begins.

Throws:
java.io.IOException

encodeEnd

public void encodeEnd(FacesContext context)
               throws java.io.IOException
Called when the encoding of a page ends, if there were no exceptions.

Throws:
java.io.IOException

encodeFinally

public void encodeFinally(FacesContext context)
Called when the encoding of a page completes, whether or not there were exceptions.



Copyright © 2003-2006 Oracle Corporation. All Rights Reserved.