public class HtmlBasicRenderer
extends javax.faces.render.Renderer
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_CLASS |
static String |
ATTRIBUTE_ID |
static String |
ATTRIBUTE_PLACEHOLDER |
static String |
ATTRIBUTE_STYLE |
static String |
ELEMENT_DIV |
static String |
ELEMENT_SECTION |
static String |
ELEMENT_SPAN |
| Constructor and Description |
|---|
HtmlBasicRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createComponentEventFunction(javax.faces.component.UIComponent component,
String attributeName) |
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
protected String |
decodeBehaviors(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
protected void |
encodeRecursive(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
protected Iterator<javax.faces.component.UIComponent> |
getChildren(javax.faces.component.UIComponent component) |
protected String |
getCurrentValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
protected void |
getEndTextToRender(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String currentValue) |
protected javax.faces.component.UIComponent |
getFacet(javax.faces.component.UIComponent component,
String name) |
protected boolean |
isBehaviorSource(String behaviorSourceId,
String componentClientId) |
protected void |
renderBooleanValue(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer,
String attributeName)
Render boolean value if attribute is set to true.
|
protected void |
renderEventValue(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer,
String attributeName,
String eventName) |
protected void |
renderStringValue(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer,
String attributeName)
Render string value if attribute is not empty.
|
protected void |
renderStringValue(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer,
String attributeName,
String matchingValue)
Render string value if attribute is equals to matching value.
|
protected void |
setSubmittedValue(javax.faces.component.UIComponent component,
Object value) |
protected boolean |
shouldRenderAttribute(Object value) |
protected boolean |
shouldWriteIdAttribute(javax.faces.component.UIComponent component) |
protected String |
writeIdAttribute(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component) |
protected String |
writeIdAttributeIfNecessary(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component) |
public static final String ELEMENT_DIV
public static final String ELEMENT_SPAN
public static final String ELEMENT_SECTION
public static final String ATTRIBUTE_ID
public static final String ATTRIBUTE_STYLE
public static final String ATTRIBUTE_CLASS
public static final String ATTRIBUTE_PLACEHOLDER
public void encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
encodeChildren in class javax.faces.render.RendererIOExceptionpublic void encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
encodeEnd in class javax.faces.render.RendererIOExceptionprotected javax.faces.component.UIComponent getFacet(javax.faces.component.UIComponent component,
String name)
component - Component from which to return a facetname - Name of the desired facetrendered property is
set to true.public void decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
decode in class javax.faces.render.Rendererprotected final String decodeBehaviors(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
protected boolean isBehaviorSource(String behaviorSourceId, String componentClientId)
protected void setSubmittedValue(javax.faces.component.UIComponent component,
Object value)
protected void renderBooleanValue(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer,
String attributeName)
throws IOException
attributeName - attribute namecomponent - the componentwriter - html response writerIOException - thrown by writerprotected void renderStringValue(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer,
String attributeName)
throws IOException
attributeName - attribute namecomponent - the componentwriter - html response writerIOException - thrown by writerprotected void renderStringValue(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer,
String attributeName,
String matchingValue)
throws IOException
attributeName - attribute namecomponent - the componentwriter - html response writermatchingValue - matchingValueIOException - thrown by writerprotected void renderEventValue(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer,
String attributeName,
String eventName)
throws IOException
IOExceptionprotected String getCurrentValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
protected void getEndTextToRender(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String currentValue)
throws IOException
IOExceptionprotected boolean shouldRenderAttribute(Object value)
protected String writeIdAttributeIfNecessary(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component) throws IOException
IOExceptionprotected String writeIdAttribute(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component) throws IOException
IOExceptionprotected boolean shouldWriteIdAttribute(javax.faces.component.UIComponent component)
protected void encodeRecursive(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
IOExceptionprotected Iterator<javax.faces.component.UIComponent> getChildren(javax.faces.component.UIComponent component)
Copyright © 2019. All rights reserved.