Class Html5FacesContext

  • All Implemented Interfaces:
    javax.faces.FacesWrapper<javax.faces.context.FacesContext>

    public class Html5FacesContext
    extends javax.faces.context.FacesContextWrapper
    JSF generates all script tags with 'type="text/javascript"' which throws HTML5 validation warnings. NOTE: Not necessary for Faces 4.0+.
    Since:
    12.0.0
    • Constructor Summary

      Constructors 
      Constructor Description
      Html5FacesContext​(javax.faces.context.FacesContext context)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setResponseWriter​(javax.faces.context.ResponseWriter responseWriter)  
      • Methods inherited from class javax.faces.context.FacesContextWrapper

        addMessage, getApplication, getAttributes, getClientIdsWithMessages, getCurrentPhaseId, getELContext, getExceptionHandler, getExternalContext, getMaximumSeverity, getMessageList, getMessageList, getMessages, getMessages, getNamingContainerSeparatorChar, getPartialViewContext, getRenderKit, getRenderResponse, getResourceLibraryContracts, getResponseComplete, getResponseStream, getResponseWriter, getViewRoot, getWrapped, isPostback, isProcessingEvents, isProjectStage, isReleased, isValidationFailed, release, renderResponse, responseComplete, setCurrentPhaseId, setExceptionHandler, setProcessingEvents, setResourceLibraryContracts, setResponseStream, setViewRoot, validationFailed
      • Methods inherited from class javax.faces.context.FacesContext

        getCurrentInstance, setCurrentInstance
    • Constructor Detail

      • Html5FacesContext

        public Html5FacesContext​(javax.faces.context.FacesContext context)
    • Method Detail

      • setResponseWriter

        public void setResponseWriter​(javax.faces.context.ResponseWriter responseWriter)
        Overrides:
        setResponseWriter in class javax.faces.context.FacesContextWrapper