Summary
Tag name: <t:checkbox>
UIComponent class: org.apache.myfaces.custom.checkbox.HtmlCheckbox
Tag class: org.apache.myfaces.custom.checkbox.HtmlCheckboxTag
Component type: org.apache.myfaces.HtmlCheckbox
Component family: org.apache.myfaces.Checkbox
Renderer type: org.apache.myfaces.Checkbox
Renderer class: org.apache.myfaces.renderkit.html.ext.HtmlCheckboxRenderer
Renders a HTML input of type "checkbox".
The associated SelectItem comes from an extended selectManyCheckbox
component with layout "spread". The selectManyCheckbox is
referenced by the "for" attribute.
All HTML pass-through attributes for this input
are taken from the associated selectManyCheckbox.
Unless otherwise specified, all attributes accept static values or EL expressions.
Attributes
Name | Type | Supports EL? | Description |
---|---|---|---|
binding | String | 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. |
for | String | Yes | id of the referenced extended selectManyCheckbox component |
id | String | Yes | An identifier for this particular component instance within
a component view.
The id must be unique within the scope of the tag's enclosing NamingContainer (eg h:form or f:subview). The id is not necessarily unique across all components in the current view This value must be a static value, ie not change over the lifetime of a component. It cannot be defined via an EL expression; only a string is permitted. |
index | int | Yes | n-th SelectItem of referenced UISelectMany starting with 0. |
rendered | boolean | Yes | A boolean value that indicates whether this component should be rendered. Default value: true. |
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. |