org.jboss.seam.jsf
Class SeamViewHandler
java.lang.Object
javax.faces.application.ViewHandler
org.jboss.seam.jsf.SeamViewHandler
public class SeamViewHandler
- extends javax.faces.application.ViewHandler
Allows the JSF view locale to be integrated with
the locale coming from Seam internationalization.
- Author:
- Gavin King
- See Also:
LocaleSelector
Fields inherited from class javax.faces.application.ViewHandler |
DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME, CHARACTER_ENCODING_KEY |
Constructor Summary |
SeamViewHandler(javax.faces.application.ViewHandler viewHandler)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SeamViewHandler
public SeamViewHandler(javax.faces.application.ViewHandler viewHandler)
calculateCharacterEncoding
public String calculateCharacterEncoding(javax.faces.context.FacesContext context)
- Overrides:
calculateCharacterEncoding
in class javax.faces.application.ViewHandler
initView
public void initView(javax.faces.context.FacesContext context)
throws javax.faces.FacesException
- Overrides:
initView
in class javax.faces.application.ViewHandler
- Throws:
javax.faces.FacesException
calculateLocale
public Locale calculateLocale(javax.faces.context.FacesContext facesContext)
- Specified by:
calculateLocale
in class javax.faces.application.ViewHandler
calculateRenderKitId
public String calculateRenderKitId(javax.faces.context.FacesContext ctx)
- Specified by:
calculateRenderKitId
in class javax.faces.application.ViewHandler
createView
public javax.faces.component.UIViewRoot createView(javax.faces.context.FacesContext ctx,
String viewId)
- Specified by:
createView
in class javax.faces.application.ViewHandler
getActionURL
public String getActionURL(javax.faces.context.FacesContext ctx,
String viewId)
- Specified by:
getActionURL
in class javax.faces.application.ViewHandler
getResourceURL
public String getResourceURL(javax.faces.context.FacesContext ctx,
String path)
- Specified by:
getResourceURL
in class javax.faces.application.ViewHandler
renderView
public void renderView(javax.faces.context.FacesContext ctx,
javax.faces.component.UIViewRoot viewRoot)
throws IOException,
javax.faces.FacesException
- Specified by:
renderView
in class javax.faces.application.ViewHandler
- Throws:
IOException
javax.faces.FacesException
restoreView
public javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext ctx,
String viewId)
- Specified by:
restoreView
in class javax.faces.application.ViewHandler
writeState
public void writeState(javax.faces.context.FacesContext ctx)
throws IOException
- Specified by:
writeState
in class javax.faces.application.ViewHandler
- Throws:
IOException