10. Tomahawk Tag Reference
Contents > Tomahawk Tag Reference > t:htmlTag
t:htmlTag |
|
The t:htmlTag tag generates an arbitrary HTML tag that wraps any child components. The value attribute specifies the name of the HTML tag to be generated. If the value is empty then no tag will be generated, but child tags will still be rendered. When the rendered attribute is false, no child components are rendered. This tag does not provide a way to set attributes for the generated HTML tag, other than via the attributes already supported by this tag.
Example:
<t:htmlTag></t:htmlTag>
|
Tag Attributes
| binding |
String |
| |
| The value-binding expression linking this component tag to a backing bean property. |
| enabledOnUserRole |
String |
| |
| The enabledOnUserRole attribute determines if this component will be rendered normally or not depending on the user's roles. |
| forceId |
String |
| |
| The forceId attribute expects a boolean value, that when set to true, forces the tag to render its ID exactly as specified in the ID attribute. This allows you to apply CSS styles to the tag and to reference it in JavaScript by ID, which is typically not possible using the default JSF component ID naming system. This attribute is false by default. |
| forceIdIndex |
String |
| |
| The forceIdIndex attribute effects the component ID name when this component is rendered at runtime. It expects a boolean value that, when true, causes the component to display an index number in its ID value if the component is in a list. It has a default value of true. |
| id |
String |
| |
| The unique identifier value for this component. The value must be unique within the closest naming container. |
| rendered |
String |
| |
| A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered. |
| style |
String |
| |
| The style attribute sets the CSS style definition to be applied to this component when it is rendered. |
| styleClass |
String |
| |
| The styleClass attribute sets the CSS class to apply to this component when it is rendered. |
| value |
String |
| Required |
| The value attribute sets the current value for this component. |
| visibleOnUserRole |
String |
| |
| The visibleOnUserRole attribute determines if this component will be visible or not depending on the user's roles. |
|