public abstract class HtmlRenderer extends Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY
Constructor and Description |
---|
HtmlRenderer() |
Modifier and Type | Method and Description |
---|---|
protected String |
getActionUrl(FacesContext facesContext) |
int |
getChildCount(UIComponent component)
Return the number of children of the specified component.
|
List<UIComponent> |
getChildren(UIComponent component)
Return the list of children of the specified component.
|
protected String |
getClientId(FacesContext context,
UIComponent component)
Returns the client ID that should be used for rendering (if
shouldRenderId(javax.faces.context.FacesContext, javax.faces.component.UIComponent) returns true). |
protected boolean |
isCommonEventsOptimizationEnabled(FacesContext facesContext) |
protected boolean |
isCommonPropertiesOptimizationEnabled(FacesContext facesContext) |
protected void |
renderId(FacesContext context,
UIComponent component)
Renders the client ID as an "id".
|
protected boolean |
shouldRenderId(FacesContext context,
UIComponent component)
Returns true if the component should render an ID.
|
static String |
toUri(Object o)
Coerces an object into a URI, accounting for JSF rules
with initial slashes.
|
convertClientId, decode, encodeBegin, encodeChildren, encodeEnd, getConvertedValue, getRendersChildren
public List<UIComponent> getChildren(UIComponent component)
This default implementation simply returns component.getChildren(). However this method should always be used in order to allow renderer subclasses to override it and provide filtered or reordered views of the component children to rendering methods defined in their ancestor classes.
Any method that overrides this to "hide" child components should also override the getChildCount method.
public int getChildCount(UIComponent component)
See getChildren(UIComponent)
for more information.
protected String getActionUrl(FacesContext facesContext)
facesContext
- protected void renderId(FacesContext context, UIComponent component) throws IOException
IOException
protected String getClientId(FacesContext context, UIComponent component)
shouldRenderId(javax.faces.context.FacesContext, javax.faces.component.UIComponent)
returns true).protected boolean shouldRenderId(FacesContext context, UIComponent component)
public static String toUri(Object o)
protected boolean isCommonPropertiesOptimizationEnabled(FacesContext facesContext)
protected boolean isCommonEventsOptimizationEnabled(FacesContext facesContext)
Copyright © 2020 The Apache Software Foundation. All rights reserved.