org.jboss.gravel
Class QueryPreservingViewHandler
java.lang.Object
javax.faces.application.ViewHandler
javax.faces.application.ViewHandlerWrapper
org.jboss.gravel.QueryPreservingViewHandler
public final class QueryPreservingViewHandler
- extends javax.faces.application.ViewHandlerWrapper
A view handler that preserves GET query parameters on action URLs. This
allows <h:form>
elements to generate actions that preserve
the same parameters used to initially generate the view on postback.
To use, add the fully-qualified name of this class to the application
section
of your faces-config.xml
as an additional view-handler
, after the Facelets
view handler.
Fields inherited from class javax.faces.application.ViewHandler |
CHARACTER_ENCODING_KEY, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME |
Methods inherited from class javax.faces.application.ViewHandlerWrapper |
calculateCharacterEncoding, calculateLocale, calculateRenderKitId, createView, getResourceURL, initView, renderView, restoreView, writeState |
QueryPreservingViewHandler
public QueryPreservingViewHandler(javax.faces.application.ViewHandler viewHandler)
getActionURL
public String getActionURL(javax.faces.context.FacesContext facesContext,
String string)
- Overrides:
getActionURL
in class javax.faces.application.ViewHandlerWrapper