Package org.primefaces.renderkit
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 - PF Client Side Settings - PF Initialization Scripts - Head Content - Last Facet
-
-
Constructor Summary
Constructors Constructor Description HeadRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods 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.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, boolean csvEnabled)
protected void
encodeValidationResources(javax.faces.context.FacesContext context, boolean beanValidationEnabled)
-
-
-
Method Detail
-
encodeBegin
public void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException
- Overrides:
encodeBegin
in classjavax.faces.render.Renderer
- Throws:
IOException
-
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException
- Overrides:
encodeEnd
in classjavax.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
-
encodeValidationResources
protected void encodeValidationResources(javax.faces.context.FacesContext context, boolean beanValidationEnabled) throws IOException
- Throws:
IOException
-
encodeSettingScripts
protected void encodeSettingScripts(javax.faces.context.FacesContext context, PrimeApplicationContext applicationContext, PrimeRequestContext requestContext, javax.faces.context.ResponseWriter writer, boolean csvEnabled) throws IOException
- Throws:
IOException
-
encodeInitScripts
protected void encodeInitScripts(javax.faces.context.ResponseWriter writer) throws IOException
- Throws:
IOException
-
-