Class PortletViewHandler

java.lang.Object
javax.faces.application.ViewHandler
com.sun.faces.application.view.MultiViewHandler
com.webmethods.caf.faces.portlet.PortletViewHandler

public class PortletViewHandler extends com.sun.faces.application.view.MultiViewHandler
Portlet view handler extends XMLViewHandler by providing custom getActionURL(javax.faces.context.FacesContext, java.lang.String) method implementation to pass current viewId on the action url as a parameter. This handler is safe to use outside a portlet environment since it validates this and delegates to the parent.
  • Constructor Details

    • PortletViewHandler

      public PortletViewHandler()
  • Method Details

    • convertViewId

      protected String convertViewId(FacesContext context, String viewId)
      Overrides:
      convertViewId in class com.sun.faces.application.view.MultiViewHandler
    • getActionURL

      public String getActionURL(FacesContext context, String viewId)
      Return a URL suitable for rendering that selects the specified view identifier.
      Overrides:
      getActionURL in class com.sun.faces.application.view.MultiViewHandler
      Parameters:
      context - FacesContext for this request
      viewId - View identifier of the desired view
    • calculateLocale

      public Locale calculateLocale(FacesContext ctx)
      Returns an appropriate Locale to use for this and subsequent requests for the current client.
      Overrides:
      calculateLocale in class com.sun.faces.application.view.MultiViewHandler
      Parameters:
      ctx - FacesContext for the current request