Name
UISelectBoolean
Synopsis
This class represents a select boolean
component. A select Boolean
component lets the user set its value to true
or
false
, which is then saved as a property of an
application class after conversion and validation. The default
rendererType
is
javax.faces.Checkbox
.
When the value entered by a user is different than the previous
value, the input component fires a
ValueChangeEvent
, which can be handled by the
application through a value changed event method or one or more
listeners, in the order:
javax.faces.event.ValueChangeListener
instances
(in the order they are registered), and then the value change
listener method.
Class name: |
javax.faces.component.UISelectBoolean |
Extends: |
javax.faces.component.UIInput |
Implements: |
|
Fields
-
public static String COMPONENT_FAMILY
The component family:
javax.faces.SelectBoolean
.-
public static String COMPONENT_TYPE
The component family:
javax.faces.SelectBoolean
.
Constructor
-
public UISelectBoolean()
Creates a new instance.
Methods
-
public String getFamily()
Returns the component family ID.
-
public javax.faces.el.ValueBinding getValueBinding(String name)
If the name is
selected
, calls the superclass with the namevalue
instead. Delegates request for all other properties to the superclass directly.-
public boolean isSelected()
Returns the component’s value converted to a
boolean
.-
public void setSelected(boolean selected)
Sets the component’s value. ...
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.