Project Documentation


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.


Name Type Supports EL? Description
binding org.apache.myfaces.custom.checkbox.HtmlCheckbox 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 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.
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.