Class ViewDeclarationLanguageBase

java.lang.Object
jakarta.faces.view.ViewDeclarationLanguage
org.apache.myfaces.view.ViewDeclarationLanguageBase
Direct Known Subclasses:
FaceletViewDeclarationLanguageBase

public abstract class ViewDeclarationLanguageBase extends ViewDeclarationLanguage
Since:
2.0
  • Constructor Details

    • ViewDeclarationLanguageBase

      public ViewDeclarationLanguageBase()
  • Method Details

    • createView

      public UIViewRoot createView(FacesContext context, String viewId)
      Process the specification required algorithm that is generic to all PDL.
      Specified by:
      createView in class ViewDeclarationLanguage
      Parameters:
      context -
      viewId -
    • restoreView

      public UIViewRoot restoreView(FacesContext context, String viewId)
      Specified by:
      restoreView in class ViewDeclarationLanguage
    • calculateViewId

      protected abstract String calculateViewId(FacesContext context, String viewId)
      Calculates the effective view identifier for the specified raw view identifier.
      Parameters:
      context - le current FacesContext
      viewId - the raw view identifier
      Returns:
      the effective view identifier
    • sendSourceNotFound

      protected abstract void sendSourceNotFound(FacesContext context, String message)
      Send a source not found to the client. Although it can be considered ok in JSP mode, I think it's pretty lame to have this kind of requirement at VDL level considering VDL represents the page --> Faces tree link, not the transport layer required to send a SC_NOT_FOUND.
      Parameters:
      context - le current FacesContext
      message - the message associated with the error
    • getRenderKitFactory

      protected RenderKitFactory getRenderKitFactory()