org.jboss.gravel
Class QueryPreservingViewHandler

java.lang.Object
  extended by javax.faces.application.ViewHandler
      extended by javax.faces.application.ViewHandlerWrapper
          extended by 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.


Field Summary
 
Fields inherited from class javax.faces.application.ViewHandler
CHARACTER_ENCODING_KEY, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME
 
Constructor Summary
QueryPreservingViewHandler(javax.faces.application.ViewHandler viewHandler)
           
 
Method Summary
 String getActionURL(javax.faces.context.FacesContext facesContext, String string)
           
 
Methods inherited from class javax.faces.application.ViewHandlerWrapper
calculateCharacterEncoding, calculateLocale, calculateRenderKitId, createView, getResourceURL, initView, renderView, restoreView, writeState
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryPreservingViewHandler

public QueryPreservingViewHandler(javax.faces.application.ViewHandler viewHandler)
Method Detail

getActionURL

public String getActionURL(javax.faces.context.FacesContext facesContext,
                           String string)
Overrides:
getActionURL in class javax.faces.application.ViewHandlerWrapper