Name
<h:selectBooleanCheckbox>
Synopsis
This action represents an instance
of
the component type registered with the type ID
javax.faces.HtmlSelectBooleanCheckbox
(by default,
an instance of the
javax.faces.component.html.HtmlSelectBooleanCheckbox
class), combined with a renderer registered with the renderer type ID
javax.faces.Checkbox
.
The component is rendered as an HTML <input>
element with a type
attribute set to
checkbox
and a name
attribute
set to the component’s client ID. If the
component’s value is true, a
checked
attribute is rendered as well.
Syntax
<h:selectBooleanCheckbox [id="id
"] [binding="componentBinding
"] [rendered="true
|false"] [value="value
"] [converter="converter
"] [required="true|false
"] [validator="validatorMethod
"] [valueChangeListener="listenerMethod
"] [immediate="true|false
"] <!-- HTML attributes --> [accesskey="accessKey
"] [dir="ltr|rtl"] [disabled="true|false
"] [lang="lang
"] [onblur="code
"] [onchange="code
"] [onclick="code
"] [ondblclick="code
"] [onfocus="code
"] [onkeydown="code
"] [onkeypress="code
"] [onkeyup="code
"] [onmousedown="code
"] [onmousemove="code
"] [onmouseout="code
"] [onmouseover="code
"] [onmouseup="code
"] [onselect="code
"] [readonly="true|false
"] [style="style
"] [styleClass="styleClass
"] [tabindex="tabIndex
"] [title="title
"] />
Attributes
Attribute name |
Java type |
EL expression type |
Description |
binding |
String |
VB |
Must be a value binding expression for a property the component is bound to. |
converter |
String or javax.faces.convert.Converter ... |
Get JavaServer Faces now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.