|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
FaceletHandler | A participant in UIComponent tree building |
TemplateClient | FaceletHandlers can implement this contract and push themselves into the FaceletContext for participating in templating. |
Class Summary | |
---|---|
Facelet | The parent or root object in a FaceletHandler composition. |
FaceletContext | Context representative of a single request from a Facelet |
FaceletFactory | FaceletFactory for producing Facelets relative to the context of the underlying implementation. |
FaceletViewHandler | ViewHandler implementation for Facelets |
FaceletViewHandler.NullWriter |
Exception Summary | |
---|---|
FaceletException | An Exception from Facelet implementation |
Public Facelet API. Most developers should be able to utilizing the framework using the public classes and interfaces.
An application that wishes to use Facelets as a ViewHandler, they must specify the following in theirfaces-config.xml
(@see com.sun.facelets.FaceletViewHandler).
<application>
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
</application>
Below is sample code for using Facelets at the API level with JavaServer Faces.
// get the view to render
FacesContext context = FacesContext.getCurrentInstance();
UIViewRoot viewToRender = context.getViewRoot();
// grab our FaceletFactory and create a Facelet
FaceletFactory factory = FaceletFactory.getInstance();
Facelet f = factory.getFacelet(viewToRender.getViewId());
// populate UIViewRoot
f.apply(context, viewToRender);
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |