org.omnifaces.facesviews
Class FacesViewsViewHandler

java.lang.Object
  extended by javax.faces.application.ViewHandler
      extended by javax.faces.application.ViewHandlerWrapper
          extended by org.omnifaces.facesviews.FacesViewsViewHandler
All Implemented Interfaces:
javax.faces.FacesWrapper<javax.faces.application.ViewHandler>

public class FacesViewsViewHandler
extends javax.faces.application.ViewHandlerWrapper

View handler that renders action URL extensionless if the current request is extensionless and the requested resource is a mapped one, otherwise as-is.

For a guide on FacesViews, please see the package summary.

Author:
Arjan Tijms

Field Summary
 
Fields inherited from class javax.faces.application.ViewHandler
CHARACTER_ENCODING_KEY, DEFAULT_FACELETS_SUFFIX, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME, FACELETS_SUFFIX_PARAM_NAME, FACELETS_VIEW_MAPPINGS_PARAM_NAME
 
Constructor Summary
FacesViewsViewHandler(javax.faces.application.ViewHandler viewHandler)
           
 
Method Summary
 java.lang.String getActionURL(javax.faces.context.FacesContext context, java.lang.String viewId)
           
 javax.faces.application.ViewHandler getWrapped()
           
 
Methods inherited from class javax.faces.application.ViewHandlerWrapper
calculateCharacterEncoding, calculateLocale, calculateRenderKitId, createView, deriveViewId, getBookmarkableURL, getRedirectURL, getResourceURL, getViewDeclarationLanguage, initView, renderView, restoreView, writeState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacesViewsViewHandler

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

getActionURL

public java.lang.String getActionURL(javax.faces.context.FacesContext context,
                                     java.lang.String viewId)
Overrides:
getActionURL in class javax.faces.application.ViewHandlerWrapper

getWrapped

public javax.faces.application.ViewHandler getWrapped()
Specified by:
getWrapped in interface javax.faces.FacesWrapper<javax.faces.application.ViewHandler>
Overrides:
getWrapped in class javax.faces.application.ViewHandlerWrapper