public abstract class HtmlLayoutRenderer
extends javax.faces.render.Renderer
<f:param> parameters:
inlineMessages - whether to wrap input components with inline <h:message>
tags. True by default
messageStyle
messageStyleClass
labelSuffix
| Constructor and Description |
|---|
HtmlLayoutRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.faces.component.UIComponent |
createInlineMessage(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent metawidget,
String messageFor)
Creates an inline
HtmlMessage attached to the given messageFor id. |
protected javax.faces.component.UIOutput |
createLabel(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent componentNeedingLabel)
Create a label component for the given
UIComponent. |
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent metawidgetComponent) |
protected String |
getLabelText(javax.faces.component.UIComponent componentNeedingLabel) |
boolean |
getRendersChildren()
Denotes that this Renderer renders its own children (eg.
|
protected void |
layoutChild(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent metawidget,
javax.faces.component.UIComponent childComponent) |
protected boolean |
layoutLabel(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent metawidget,
javax.faces.component.UIComponent componentNeedingLabel)
Render the label text.
|
protected void |
writeStyleAndClass(UIMetawidget metawidget,
javax.faces.context.ResponseWriter writer,
String style) |
public void encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent metawidgetComponent)
throws IOException
encodeBegin in class javax.faces.render.RendererIOExceptionpublic boolean getRendersChildren()
encodeBegin on each child for us)getRendersChildren in class javax.faces.render.Rendererprotected String getLabelText(javax.faces.component.UIComponent componentNeedingLabel)
protected boolean layoutLabel(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent metawidget,
javax.faces.component.UIComponent componentNeedingLabel)
throws IOException
HtmlOutputText renderer, so that
it is properly escaped. Any JSF EL expressions embedded in the label should have already been
evaluated by FacesInspectionResultProcessor.IOExceptionprotected javax.faces.component.UIOutput createLabel(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent componentNeedingLabel)
UIComponent. Clients may override this
method to create a different type of label component.protected void layoutChild(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent metawidget,
javax.faces.component.UIComponent childComponent)
throws IOException
IOExceptionprotected javax.faces.component.UIComponent createInlineMessage(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent metawidget,
String messageFor)
HtmlMessage attached to the given messageFor id.
Subclasses can override this method to create a different messaging object, such as an
HtmlMessages (with an 's').
protected void writeStyleAndClass(UIMetawidget metawidget, javax.faces.context.ResponseWriter writer, String style) throws IOException
IOExceptionCopyright © 2015. All Rights Reserved.