|
||||||||||
| 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(javax.faces.context.FacesContext context,
String script)
Adds a script for execution during rendering. |
void |
encodeBegin(javax.faces.context.FacesContext context)
Called when the encoding of a page begins. |
void |
encodeEnd(javax.faces.context.FacesContext context)
Called when the encoding of a page ends, if there were no exceptions. |
void |
encodeFinally(javax.faces.context.FacesContext context)
Called when the encoding of a page completes, whether or not there were exceptions. |
void |
encodeScripts(javax.faces.context.FacesContext context)
Output any needed scripts required by the RenderKit for this page. |
boolean |
isStateless(javax.faces.context.FacesContext context)
|
boolean |
shortCircuitRenderView(javax.faces.context.FacesContext context)
Called to short-circuit rendering the view. |
| Method Detail |
|---|
void addScript(javax.faces.context.FacesContext context,
String script)
void encodeScripts(javax.faces.context.FacesContext context)
throws IOException
IOException
boolean shortCircuitRenderView(javax.faces.context.FacesContext context)
throws IOException
IOExceptionboolean isStateless(javax.faces.context.FacesContext context)
void encodeBegin(javax.faces.context.FacesContext context)
throws IOException
IOException
void encodeEnd(javax.faces.context.FacesContext context)
throws IOException
IOExceptionvoid encodeFinally(javax.faces.context.FacesContext context)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||