Class HeadRenderer

java.lang.Object
javax.faces.render.Renderer
org.primefaces.renderkit.HeadRenderer

public class HeadRenderer extends javax.faces.render.Renderer
Renders head content based on the following order - First Facet - Theme CSS - FontAwesome - Middle Facet - Registered Resources - Client Validation Scripts - Locales - PF Client Side Settings - PF Initialization Scripts - Head Content - Last Facet
  • Field Summary

    Fields inherited from class javax.faces.render.Renderer

    PASSTHROUGH_RENDERER_LOCALNAME_KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
     
    protected void
    encodeCSS(javax.faces.context.FacesContext context, String library, String resource)
     
    void
    encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
     
    protected void
    encodeInitScripts(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer)
     
    protected void
    encodeJS(javax.faces.context.FacesContext context, String library, String script)
     
    protected void
    encodeSettingScripts(javax.faces.context.FacesContext context, PrimeApplicationContext applicationContext, PrimeRequestContext requestContext, javax.faces.context.ResponseWriter writer)
     

    Methods inherited from class javax.faces.render.Renderer

    convertClientId, decode, encodeChildren, getConvertedValue, getRendersChildren

    Methods inherited from class java.lang.Object

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

    • HeadRenderer

      public HeadRenderer()
  • Method Details

    • encodeBegin

      public void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException
      Overrides:
      encodeBegin in class javax.faces.render.Renderer
      Throws:
      IOException
    • encodeEnd

      public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException
      Overrides:
      encodeEnd in class javax.faces.render.Renderer
      Throws:
      IOException
    • encodeCSS

      protected void encodeCSS(javax.faces.context.FacesContext context, String library, String resource) throws IOException
      Throws:
      IOException
    • encodeJS

      protected void encodeJS(javax.faces.context.FacesContext context, String library, String script) throws IOException
      Throws:
      IOException
    • encodeSettingScripts

      protected void encodeSettingScripts(javax.faces.context.FacesContext context, PrimeApplicationContext applicationContext, PrimeRequestContext requestContext, javax.faces.context.ResponseWriter writer) throws IOException
      Throws:
      IOException
    • encodeInitScripts

      protected void encodeInitScripts(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer) throws IOException
      Throws:
      IOException