public abstract class AbstractHtmlTagRenderer<T extends HtmlInputComponent> extends HtmlBasicInputRenderer
ATTRIBUTE_CLASS, ATTRIBUTE_ID, ATTRIBUTE_PLACEHOLDER, ATTRIBUTE_STYLE, ELEMENT_DIV, ELEMENT_SECTION, ELEMENT_SPAN| Constructor and Description |
|---|
AbstractHtmlTagRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendEncodeBegin(T component,
javax.faces.context.ResponseWriter writer) |
protected String |
createInputClientId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
protected void |
encodeAdditionalTagAttributes(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer,
String currentValue) |
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String additionalStyleClass) |
protected void |
encodeBeginInnerWrapper(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer) |
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 |
encodeEnd(T component,
javax.faces.context.ResponseWriter writer) |
protected void |
encodeEndContent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
HtmlInputComponent htmlComponent,
javax.faces.context.ResponseWriter writer) |
protected void |
encodeEndInnerWrapper(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer) |
protected void |
encodeInnerEnd(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer) |
protected boolean |
encodeReadonly() |
protected void |
encodeReadonly(T htmlComponent,
javax.faces.context.ResponseWriter writer) |
protected void |
encodeSuperEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Helper to call super end from sub classes without calling encodeEnd of this class.
|
protected void |
encodeTagType(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer) |
protected void |
getEndTextToRender(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String currentValue)
Method copied from super class to add html features.
|
protected String |
getHtmlTagName() |
boolean |
getRendersChildren() |
protected void |
postEncodeInput(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
protected void |
renderAdditionalInputAttributes(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer) |
protected void |
renderInputStyleClass(HtmlInputComponent component,
javax.faces.context.ResponseWriter writer)
When using
AbstractHtmlTagRenderer input component will be wrapped. |
protected void |
renderTooltipIfNecessary(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
getConvertedValuecreateComponentEventFunction, decode, decodeBehaviors, encodeRecursive, getChildren, getCurrentValue, getFacet, isBehaviorSource, renderBooleanValue, renderEventValue, renderStringValue, renderStringValue, setSubmittedValue, shouldRenderAttribute, shouldWriteIdAttribute, writeIdAttribute, writeIdAttributeIfNecessarypublic void encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
encodeBegin in class javax.faces.render.RendererIOExceptionpublic void encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String additionalStyleClass)
throws IOException
IOExceptionpublic void encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
encodeEnd in class HtmlBasicRendererIOExceptionpublic boolean getRendersChildren()
getRendersChildren in class javax.faces.render.Rendererprotected String getHtmlTagName()
protected void renderTooltipIfNecessary(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
IOExceptionprotected void appendEncodeBegin(T component, javax.faces.context.ResponseWriter writer) throws IOException
IOExceptionprotected void encodeEndContent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
HtmlInputComponent htmlComponent,
javax.faces.context.ResponseWriter writer)
throws IOException
IOExceptionprotected void postEncodeInput(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
IOExceptionprotected boolean encodeReadonly()
protected void encodeReadonly(T htmlComponent, javax.faces.context.ResponseWriter writer) throws IOException
IOExceptionprotected void encodeEndInnerWrapper(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer)
throws IOException
IOExceptionprotected void encodeBeginInnerWrapper(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer)
throws IOException
IOExceptionprotected void encodeInnerEnd(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer)
throws IOException
IOExceptionprotected void encodeEnd(T component, javax.faces.context.ResponseWriter writer) throws IOException
IOExceptionprotected void encodeSuperEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
component - the componentcontext - FacesContextIOException - thrown by writerprotected void getEndTextToRender(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String currentValue)
throws IOException
getEndTextToRender in class HtmlBasicRendererIOExceptionprotected String createInputClientId(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
protected void encodeTagType(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer)
throws IOException
IOExceptionprotected void encodeAdditionalTagAttributes(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer,
String currentValue)
throws IOException
IOExceptionprotected void renderInputStyleClass(HtmlInputComponent component, javax.faces.context.ResponseWriter writer) throws IOException
AbstractHtmlTagRenderer input component will be wrapped. Component style class will be set to
component wrapper. This method renders inner input component bootstrap classes and validation markers.component - the componentwriter - html response writerIOException - thrown by writerprotected void renderAdditionalInputAttributes(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer)
throws IOException
IOExceptionpublic void encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
encodeChildren in class HtmlBasicRendererIOExceptionCopyright © 2018. All rights reserved.