The TriStateManyCheckbox add a new state to the a common SelectManyBooleanCheckbox. The value for the state of the elements are mapped to 0,1,2 string values.

This component supports validators and converters and also can be customized with CSS classes for icons.

Choose the uses cases to see pe:triStateManyCheckbox in action.
Components and more
Documentation pe:triStateManyCheckbox
Attributes (move mouse over the names to see data types)
Name Description
id Unique identifier of the component in a namingContainer.
rendered Boolean value to specify the rendering of the component, when set to false component will not be rendered.
binding An EL expression referring to a server side UIComponent instance in a backing bean.
value Value of the component.
converter An EL expression or a literal text that defines a converter for the component. When it's an EL expression, it's resolved to a converter instance. In case it's a static text, it must refer to a converter id.
immediate When set true, process validations logic is executed at apply request values phase for this component. Default is false.
required Marks component as required.
validator A method expression referring to a method validationg the input.
valueChangeListener A method binding expression referring to a method for handling a valuchangeevent.
requiredMessage Message to display when required field validation fails.
converterMessage Message to display when conversion fails.
validatorMessage Message to display when validation fails.
widgetVar Name of the client side widget.
disabled Disable the component.
label User presentable name.
layout Layout of the checkboxes, valid values are �lineDirection�(horizontal) and �pageDirection�(vertical).
onchange Callback on change event.
style Inline style of the component.
styleClass Style class of the main Layout container element. Default value is null.
stateOneIcon Icon for StateOne as a css class.
stateTwoIcon Icon for StateTwo as a css class.
stateThreeIcon Icon for StateThree as a css class.
stateOneTitle Title for StateOne.
stateTwoTitle Title for StateTwo.
stateThreeTitle Title for StateThree.
tabindex The tab index to assign to the component, If not given, tabindex=0 will be assigned.
PrimeFaces Extensions Showcase - © 2011-2023,PrimeFaces: 13.0.0,PrimeFaces Extensions: 13.0.1,JSF: Apache MyFaces JSF-2.3 Core Impl 2.3.10,Server: jetty/9.4.36.v20210114,Build time: 2023-09-11 19:07