Class Html5FacesContext

java.lang.Object
javax.faces.context.FacesContext
javax.faces.context.FacesContextWrapper
org.primefaces.application.factory.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

    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

    Methods inherited from class java.lang.Object

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

    • Html5FacesContext

      public Html5FacesContext(javax.faces.context.FacesContext context)
  • Method Details

    • setResponseWriter

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