|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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, or with
Service.getRenderKitService(javax.faces.context.FacesContext, java.lang.Class
,
Example: The following code will add a script to be rendered during the following request:
ExtendedRenderKitService service = Service.getRenderKitService(facesContext, ExtendedRenderKitService.class); service.addScript(facesContext, "alert('foo');");
Method Summary | |
---|---|
void |
addScript(FacesContext context,
String script)
Adds a script for execution during rendering. |
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 |
isStateless(FacesContext context)
|
boolean |
shortCircuitRenderView(FacesContext context)
Called to short-circuit rendering the view. |
Method Detail |
---|
void addScript(FacesContext context, String script)
void encodeScripts(FacesContext context) throws IOException
IOException
boolean shortCircuitRenderView(FacesContext context) throws IOException
IOException
boolean isStateless(FacesContext context)
void encodeBegin(FacesContext context) throws IOException
IOException
void encodeEnd(FacesContext context) throws IOException
IOException
void encodeFinally(FacesContext context)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |