Class DesignerContextAwareViewHandler

java.lang.Object
javax.faces.application.ViewHandler
javax.faces.application.ViewHandlerWrapper
de.xima.fc.gui.viewhandler.DesignerContextAwareViewHandler
All Implemented Interfaces:
javax.faces.FacesWrapper<javax.faces.application.ViewHandler>

public class DesignerContextAwareViewHandler extends javax.faces.application.ViewHandlerWrapper
View handler for the designer that adds the designer conversation ID to all URLs. This is similar to ConversationScoped and ConversationAwareViewHandler, but does not require a lock on the entire request which may lead to BusyConversationException errors.
Since:
7.0.0
Author:
XIMA MEDIA GmbH
  • Field Summary

    Fields inherited from class javax.faces.application.ViewHandler

    CHARACTER_ENCODING_KEY, DEFAULT_FACELETS_SUFFIX, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME, DISABLE_FACELET_JSF_VIEWHANDLER_PARAM_NAME, FACELETS_BUFFER_SIZE_PARAM_NAME, FACELETS_DECORATORS_PARAM_NAME, FACELETS_LIBRARIES_PARAM_NAME, FACELETS_REFRESH_PERIOD_PARAM_NAME, FACELETS_SKIP_COMMENTS_PARAM_NAME, FACELETS_SUFFIX_PARAM_NAME, FACELETS_VIEW_MAPPINGS_PARAM_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    DesignerContextAwareViewHandler(javax.faces.application.ViewHandler wrapped)
    Invoked by the framework when a new view handler is required.
  • Method Summary

    Modifier and Type
    Method
    Description
    getActionURL(javax.faces.context.FacesContext facesContext, String viewId)
     
    getBookmarkableURL(javax.faces.context.FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams)
     
    getRedirectURL(javax.faces.context.FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams)
     
    getResourceURL(javax.faces.context.FacesContext context, String path)
     

    Methods inherited from class javax.faces.application.ViewHandlerWrapper

    addProtectedView, calculateCharacterEncoding, calculateLocale, calculateRenderKitId, createView, deriveLogicalViewId, deriveViewId, getProtectedViewsUnmodifiable, getViewDeclarationLanguage, getViews, getViews, getWebsocketURL, getWrapped, initView, removeProtectedView, renderView, restoreView, writeState

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DesignerContextAwareViewHandler

      public DesignerContextAwareViewHandler(javax.faces.application.ViewHandler wrapped)
      Invoked by the framework when a new view handler is required.
      Parameters:
      wrapped - View handler to which to delegate methods we do not wish to override.
  • Method Details

    • getActionURL

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

      public String getBookmarkableURL(javax.faces.context.FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams)
      Overrides:
      getBookmarkableURL in class javax.faces.application.ViewHandlerWrapper
    • getRedirectURL

      public String getRedirectURL(javax.faces.context.FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams)
      Overrides:
      getRedirectURL in class javax.faces.application.ViewHandlerWrapper
    • getResourceURL

      public String getResourceURL(javax.faces.context.FacesContext context, String path)
      Overrides:
      getResourceURL in class javax.faces.application.ViewHandlerWrapper