|
JSF-Spring | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.application.ViewHandler
de.mindmatters.faces.application.ViewBuilder
de.mindmatters.faces.application.FaceletViewBuilder
public class FaceletViewBuilder
ViewBuilder implementation based upon jsf-facelets. Facelets is able to restore the structure of a view without any state representing the tree structure.
Configure this resolver in your faces-config.xml file as
follows:
<application> ... <view-handler>de.mindmatters.faces.application.FaceletViewBuilder</view-handler> </application>
ViewBuilder,
ViewBuilder.buildView(FacesContext, String),
FaceletViewHandler| Field Summary |
|---|
| Fields inherited from class javax.faces.application.ViewHandler |
|---|
CHARACTER_ENCODING_KEY, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME |
| Constructor Summary | |
|---|---|
FaceletViewBuilder(ViewHandler delegate)
Constructor that takes the original ViewHandler. |
|
| Method Summary | |
|---|---|
UIViewRoot |
buildView(FacesContext context,
java.lang.String viewId)
Perform whatever actions are required to build the view associated with the specified FacesContext and viewId. |
java.util.Locale |
calculateLocale(FacesContext context)
|
java.lang.String |
calculateRenderKitId(FacesContext context)
|
UIViewRoot |
createView(FacesContext context,
java.lang.String viewId)
|
protected java.lang.Class |
extendedFaceletViewHandlerClass()
Must return a ViewHandler class of type ExtendedFaceletViewHandler. |
java.lang.String |
getActionURL(FacesContext context,
java.lang.String viewId)
|
java.lang.String |
getResourceURL(FacesContext context,
java.lang.String path)
|
void |
renderView(FacesContext context,
UIViewRoot viewToRender)
|
UIViewRoot |
restoreView(FacesContext context,
java.lang.String viewId)
|
protected void |
writeStateInClient(FacesContext context)
Writes the state of a view into the response. |
| Methods inherited from class de.mindmatters.faces.application.ViewBuilder |
|---|
markForTransientState, unmarkTransientState, writeState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FaceletViewBuilder(ViewHandler delegate)
ViewHandler.
delegate - the original ViewHandler| Method Detail |
|---|
public UIViewRoot buildView(FacesContext context,
java.lang.String viewId)
FacesContext and viewId. Building a
view means to restore the component tree structure of a view
without the need of a serialized state representing the
structure.
buildView in class ViewBuildercontext - FacesContext for the current requestviewId - the view identifier for the current request
UIViewRoot representing the view
protected void writeStateInClient(FacesContext context)
throws java.io.IOException
StateManager.writeState(javax.faces.context.FacesContext, javax.faces.application.StateManager.SerializedView)
writeStateInClient in class ViewBuildercontext - FacesContext for the current request
java.io.IOException - if an input/output error occursViewHandler.writeState(FacesContext)public java.util.Locale calculateLocale(FacesContext context)
calculateLocale in class ViewHandlerpublic java.lang.String calculateRenderKitId(FacesContext context)
calculateRenderKitId in class ViewHandler
public UIViewRoot createView(FacesContext context,
java.lang.String viewId)
createView in class ViewHandler
public java.lang.String getActionURL(FacesContext context,
java.lang.String viewId)
getActionURL in class ViewHandler
public java.lang.String getResourceURL(FacesContext context,
java.lang.String path)
getResourceURL in class ViewHandler
public void renderView(FacesContext context,
UIViewRoot viewToRender)
throws java.io.IOException
renderView in class ViewHandlerjava.io.IOException
public UIViewRoot restoreView(FacesContext context,
java.lang.String viewId)
restoreView in class ViewHandlerprotected java.lang.Class extendedFaceletViewHandlerClass()
ExtendedFaceletViewHandler. An instance of this class will be
used internal as delegate. Default implementation delivers a class object
of ExtendedFaceletViewHandler. May be overridden in subclasses.
|
JSF-Spring | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||