Class HtmlRenderer
java.lang.Object
jakarta.faces.render.Renderer
org.apache.myfaces.renderkit.html.base.HtmlRenderer
- Direct Known Subclasses:
- HtmlBodyRendererBase,- HtmlButtonRendererBase,- HtmlCheckboxRendererBase,- HtmlCommandScriptRenderer,- HtmlCompositeComponentRenderer,- HtmlCompositeFacetRenderer,- HtmlFormatRenderer,- HtmlFormRendererBase,- HtmlGridRendererBase,- HtmlGroupRendererBase,- HtmlHiddenRenderer,- HtmlImageRendererBase,- HtmlInputFileRendererBase,- HtmlLabelRenderer,- HtmlLinkRendererBase,- HtmlMessageRendererBase,- HtmlOutcomeTargetButtonRendererBase,- HtmlRadioRendererBase,- HtmlSecretRendererBase,- HtmlSelectableRendererBase,- HtmlTableRendererBase,- HtmlTextareaRendererBase,- HtmlTextRendererBase,- JsfElementRenderer
- 
Field SummaryFields inherited from class jakarta.faces.render.RendererPASSTHROUGH_RENDERER_LOCALNAME_KEY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringgetActionUrl(FacesContext facesContext) intgetChildCount(UIComponent component) Return the number of children of the specified component.getChildren(UIComponent component) Return the list of children of the specified component.protected StringgetClientId(FacesContext context, UIComponent component) Returns the client ID that should be used for rendering (ifshouldRenderId(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent)returns true).protected booleanisCommonEventsOptimizationEnabled(FacesContext facesContext) protected booleanisCommonPropertiesOptimizationEnabled(FacesContext facesContext) protected voidrenderId(FacesContext context, UIComponent component) Renders the client ID as an "id".protected booleanshouldRenderId(FacesContext context, UIComponent component) Returns true if the component should render an ID.Methods inherited from class jakarta.faces.render.RendererconvertClientId, decode, encodeBegin, encodeChildren, encodeEnd, getConvertedValue, getRendersChildren
- 
Constructor Details- 
HtmlRendererpublic HtmlRenderer()
 
- 
- 
Method Details- 
getChildrenReturn the list of children of the specified 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. - Returns:
- a list of UIComponent objects.
 
- 
getChildCountReturn the number of children of the specified component.See getChildren(UIComponent)for more information.
- 
getActionUrl- Parameters:
- facesContext-
- Returns:
- String A String representing the action URL
 
- 
renderIdRenders the client ID as an "id".- Throws:
- IOException
 
- 
getClientIdReturns the client ID that should be used for rendering (ifshouldRenderId(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent)returns true).
- 
shouldRenderIdReturns true if the component should render an ID. Components that deliver events should always return "true".
- 
isCommonPropertiesOptimizationEnabled
- 
isCommonEventsOptimizationEnabled
 
-