Project Documentation


Tag name: <t:htmlTag>
UIComponent class: org.apache.myfaces.custom.htmlTag.HtmlTag
Tag class: org.apache.myfaces.custom.htmlTag.HtmlTagTag
Component type: org.apache.myfaces.HtmlTag
Component family: javax.faces.Output
Renderer type: org.apache.myfaces.HtmlTagRenderer
Renderer class: org.apache.myfaces.custom.htmlTag.HtmlTagRenderer

Creates an arbitrary HTML tag which encloses any child components. The value attribute specifies the name of the generated tag.
If value is an empty string then no tag will be generated, but the child components will be rendered. This differs from setting rendered=false, which prevents child components from being rendered at all.
You can specify some attribute to be added to the component using f:param like this:
Unless otherwise specified, all attributes accept static values or EL expressions.


<t:htmlTag [{all standard UIOutput attributes}]>
  <f:param name="AttributeName" value="AttributeValue" />


<t:htmlTag value="br" />


Name Type Supports EL? Description
binding org.apache.myfaces.custom.htmlTag.HtmlTag Only EL Identifies a backing bean property (of type UIComponent or appropriate subclass) to bind to this component instance. This value must be an EL expression.
enabledOnUserRole String Yes If user is in given role, this component will be rendered normally. If not, no hyperlink is rendered but all nested tags (=body) are rendered.
forceId boolean No If true, this component will force the use of the specified id when rendering.
forceIdIndex boolean No If false, this component will not append a '[n]' suffix (where 'n' is the row index) to components that are contained within a "list." This value will be true by default and the value will be ignored if the value of forceId is false (or not specified.)
id String Yes Get a string which uniquely identifies this UIComponent within the scope of the nearest ancestor NamingContainer component. The id is not necessarily unique across all components in the current view.
rendered boolean Yes A boolean value that indicates whether this component should be rendered. Default value: true.
style String Yes HTML: CSS styling instructions.
styleClass String Yes The CSS class for this element. Corresponds to the HTML 'class' attribute.
value Object Yes Gets The initial value of this component.
visibleOnUserRole String Yes If user is in given role, this component will be rendered normally. If not, nothing is rendered and the body of this tag will be skipped.