|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.application.ViewHandler org.apache.struts.faces.application.ViewHandlerImpl
public class ViewHandlerImpl
Custom ViewHandler
implementation that adds features
specific to the Struts-Faces Integration Library. It leverages the
"decorator pattern" customization strategy that JSF supports, by
delegating most processing to the ViewHandler
instance
handed to our constructor.
Field Summary |
---|
Fields inherited from class javax.faces.application.ViewHandler |
---|
CHARACTER_ENCODING_KEY, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME |
Constructor Summary | |
---|---|
ViewHandlerImpl(javax.faces.application.ViewHandler handler)
Construct a ViewHandlerImpl decorating the
specified ViewHandler instance. |
Method Summary | |
---|---|
Locale |
calculateLocale(javax.faces.context.FacesContext context)
|
String |
calculateRenderKitId(javax.faces.context.FacesContext context)
|
javax.faces.component.UIViewRoot |
createView(javax.faces.context.FacesContext context,
String viewId)
|
String |
getActionURL(javax.faces.context.FacesContext context,
String viewId)
|
javax.faces.application.ViewHandler |
getHandler()
Return the ViewHandler instance we are decorating. |
String |
getResourceURL(javax.faces.context.FacesContext context,
String viewId)
|
void |
renderView(javax.faces.context.FacesContext context,
javax.faces.component.UIViewRoot view)
If the Struts application has set a Locale , pass it
on to JSF prior to delegating the actual rendering. |
javax.faces.component.UIViewRoot |
restoreView(javax.faces.context.FacesContext context,
String viewId)
|
void |
setHandler(javax.faces.application.ViewHandler handler)
Set the ViewHandler instance we are decorating. |
void |
writeState(javax.faces.context.FacesContext context)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewHandlerImpl(javax.faces.application.ViewHandler handler)
Construct a ViewHandlerImpl
decorating the
specified ViewHandler
instance.
handler
- ViewHandler
to be decoratedMethod Detail |
---|
public javax.faces.application.ViewHandler getHandler()
Return the ViewHandler
instance we are decorating.
public void setHandler(javax.faces.application.ViewHandler handler)
Set the ViewHandler
instance we are decorating.
handler
- ViewHandler
instance to decoratepublic void renderView(javax.faces.context.FacesContext context, javax.faces.component.UIViewRoot view) throws IOException, javax.faces.FacesException
If the Struts application has set a Locale
, pass it
on to JSF prior to delegating the actual rendering.
renderView
in class javax.faces.application.ViewHandler
context
- FacesContext
for the current requestview
- UIViewRoot
to be rendered
IOException
javax.faces.FacesException
public Locale calculateLocale(javax.faces.context.FacesContext context)
calculateLocale
in class javax.faces.application.ViewHandler
public String calculateRenderKitId(javax.faces.context.FacesContext context)
calculateRenderKitId
in class javax.faces.application.ViewHandler
public javax.faces.component.UIViewRoot createView(javax.faces.context.FacesContext context, String viewId)
createView
in class javax.faces.application.ViewHandler
public String getActionURL(javax.faces.context.FacesContext context, String viewId)
getActionURL
in class javax.faces.application.ViewHandler
public String getResourceURL(javax.faces.context.FacesContext context, String viewId)
getResourceURL
in class javax.faces.application.ViewHandler
public javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context, String viewId)
restoreView
in class javax.faces.application.ViewHandler
public void writeState(javax.faces.context.FacesContext context) throws IOException
writeState
in class javax.faces.application.ViewHandler
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |