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
- 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
encodeBegin
(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) protected void
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
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
-
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 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
-
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
-