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
-
Field Summary
Fields inherited from class javax.faces.render.Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) protected voidvoidencodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) protected voidencodeInitScripts(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer) protected voidprotected voidencodeSettingScripts(javax.faces.context.FacesContext context, PrimeApplicationContext applicationContext, PrimeRequestContext requestContext, javax.faces.context.ResponseWriter writer, boolean csvEnabled) protected voidencodeValidationResources(javax.faces.context.FacesContext context, boolean beanValidationEnabled) Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, encodeChildren, getConvertedValue, getRendersChildren
-
Constructor Details
-
HeadRenderer
public HeadRenderer()
-
-
Method Details
-
encodeBegin
public void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException - Overrides:
encodeBeginin classjavax.faces.render.Renderer- Throws:
IOException
-
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException - Overrides:
encodeEndin 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.FacesContext context, javax.faces.context.ResponseWriter writer) throws IOException - Throws:
IOException
-