com.sun.faces.application
Class ViewHandlerImpl
java.lang.Object
javax.faces.application.ViewHandler
com.sun.faces.application.ViewHandlerImpl
public class ViewHandlerImpl
- extends javax.faces.application.ViewHandler
ViewHandlerImpl is the default implementation class for ViewHandler.
- Version:
- $Id: ViewHandlerImpl.java,v 1.99.2.2 2007/05/16 17:38:58 rlubke Exp $
- See Also:
ViewHandler
Fields inherited from class javax.faces.application.ViewHandler |
CHARACTER_ENCODING_KEY, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME |
Method Summary |
java.util.Locale |
calculateLocale(javax.faces.context.FacesContext context)
|
java.lang.String |
calculateRenderKitId(javax.faces.context.FacesContext context)
|
javax.faces.component.UIViewRoot |
createView(javax.faces.context.FacesContext context,
java.lang.String viewId)
|
protected java.util.Locale |
findMatch(javax.faces.context.FacesContext context,
java.util.Locale pref)
Attempts to find a matching locale based on pref and
list of supported locales, using the matching algorithm
as described in JSTL 8.3.2. |
java.lang.String |
getActionURL(javax.faces.context.FacesContext context,
java.lang.String viewId)
|
java.lang.String |
getResourceURL(javax.faces.context.FacesContext context,
java.lang.String path)
|
void |
renderView(javax.faces.context.FacesContext context,
javax.faces.component.UIViewRoot viewToRender)
|
javax.faces.component.UIViewRoot |
restoreView(javax.faces.context.FacesContext context,
java.lang.String viewId)
|
void |
writeState(javax.faces.context.FacesContext context)
|
Methods inherited from class javax.faces.application.ViewHandler |
calculateCharacterEncoding, initView |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewHandlerImpl
public ViewHandlerImpl()
renderView
public void renderView(javax.faces.context.FacesContext context,
javax.faces.component.UIViewRoot viewToRender)
throws java.io.IOException,
javax.faces.FacesException
- Specified by:
renderView
in class javax.faces.application.ViewHandler
- Throws:
java.io.IOException
javax.faces.FacesException
restoreView
public javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context,
java.lang.String viewId)
- Specified by:
restoreView
in class javax.faces.application.ViewHandler
createView
public javax.faces.component.UIViewRoot createView(javax.faces.context.FacesContext context,
java.lang.String viewId)
- Specified by:
createView
in class javax.faces.application.ViewHandler
calculateLocale
public java.util.Locale calculateLocale(javax.faces.context.FacesContext context)
- Specified by:
calculateLocale
in class javax.faces.application.ViewHandler
calculateRenderKitId
public java.lang.String calculateRenderKitId(javax.faces.context.FacesContext context)
- Specified by:
calculateRenderKitId
in class javax.faces.application.ViewHandler
findMatch
protected java.util.Locale findMatch(javax.faces.context.FacesContext context,
java.util.Locale pref)
- Attempts to find a matching locale based on
pref
and
list of supported locales, using the matching algorithm
as described in JSTL 8.3.2.
- Parameters:
context
- the FacesContext
for the current requestpref
- the preferred locale
- Returns:
- the Locale based on pref and the matching alogritm specified
in JSTL 8.3.2
writeState
public void writeState(javax.faces.context.FacesContext context)
throws java.io.IOException
- Specified by:
writeState
in class javax.faces.application.ViewHandler
- Throws:
java.io.IOException
getActionURL
public java.lang.String getActionURL(javax.faces.context.FacesContext context,
java.lang.String viewId)
- Specified by:
getActionURL
in class javax.faces.application.ViewHandler
getResourceURL
public java.lang.String getResourceURL(javax.faces.context.FacesContext context,
java.lang.String path)
- Specified by:
getResourceURL
in class javax.faces.application.ViewHandler
Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.