Class UISelectBoolean

All Implemented Interfaces:
EditableValueHolder, PartialStateHolder, StateHolder, TransientStateHolder, ValueHolder, ComponentSystemEventListener, FacesListener, SystemEventListenerHolder, EventListener
Direct Known Subclasses:
HtmlSelectBooleanCheckbox

@JSFComponent(defaultRendererType="jakarta.faces.Checkbox") public class UISelectBoolean extends UIInput
A component that allows the user to select or unselect an object.

This can also be used to choose between two states such as true/false or on/off.

See the javadoc for this class in the Faces Specification for further details.

  • Field Details

  • Constructor Details

    • UISelectBoolean

      public UISelectBoolean()
  • Method Details

    • getFamily

      public String getFamily()
      Overrides:
      getFamily in class UIInput
    • setSelected

      public void setSelected(boolean selected)
    • isSelected

      public boolean isSelected()
    • getValueExpression

      public jakarta.el.ValueExpression getValueExpression(String name)
      Overrides:
      getValueExpression in class UIComponent
    • setValueExpression

      public void setValueExpression(String name, jakarta.el.ValueExpression binding)
      Overrides:
      setValueExpression in class UIComponent
    • getValue

      @JSFProperty(deferredValueType="java.lang.Boolean") public Object getValue()
      Description copied from class: UIInput
      Return the current value of this component.

      If a submitted value has been converted but not yet pushed into the model, then return that locally-cached value (see isLocalValueSet).

      Otherwise, evaluate an EL expression to fetch a value from the model.
      Specified by:
      getValue in interface ValueHolder
      Overrides:
      getValue in class UIInput
      Returns:
      the new value value