Tobago Demo

Menu

Root Dummy Intro Search Getting Started Docker What's New Migration Compatibility FAQ API Download Server Info Logging Info In Suggest Textarea Date Range Group 5 Star Rating File Upload Out Label Badge Image Figure Progress Object Checkbox Toggle Dropdown Radio Listbox SelectOneList Multi Checkbox Multi Listbox Shuttle SelectManyList Button and Link Default Command Button Group Customizer Link Group Box Panel Separator Section Header and Footer Bar Popup Popover Toast Basic example Tab Client Tab Ajax Tab Server Basic example Sheet Sorting Paginator Sheet Column Selector Sheet Selectionchange Sheet Event Sheet Action Sheet Markup Sheet Style Empty Sheet Column Bar Sheet Filter Sheet Static Header Sheet Multi Header Sheet Tree Column Panel Sheet Editable Sheet Lazy Sheet Nested Basic example Tree Command Types Tree Select Tree Editor Tree Menu Tree Listbox Intro TinyMCE CKEditor Flow Layout Flex Layout Segment Layout Label Layout Grid Layout Split Layout Message-layout Overview Collapsible Box Collapsible Popup Collapsible Panel Collapsible Section Content Validation JSR 303 Severity Messages Content Security Policy Sanitize Roles Form AccessKey Focus Exception Handler Style Tag Bootstrap Theme Icons Partial Ajax Behavior WebSocket Transition Non Faces Request Conversion Error Handling For Each ConversationScoped Download Configuration Format Locale DataAttribute Meta
Root Dummy Intro Search Getting Started Docker What's New Migration Compatibility FAQ API Download Server Info Logging Info In Suggest Textarea Date Range Group 5 Star Rating File Upload Out Label Badge Image Figure Progress Object Checkbox Toggle Dropdown Radio Listbox SelectOneList Multi Checkbox Multi Listbox Shuttle SelectManyList Button and Link Default Command Button Group Customizer Link Group Box Panel Separator Section Header and Footer Bar Popup Popover Toast Basic example Tab Client Tab Ajax Tab Server Basic example Sheet Sorting Paginator Sheet Column Selector Sheet Selectionchange Sheet Event Sheet Action Sheet Markup Sheet Style Empty Sheet Column Bar Sheet Filter Sheet Static Header Sheet Multi Header Sheet Tree Column Panel Sheet Editable Sheet Lazy Sheet Nested Basic example Tree Command Types Tree Select Tree Editor Tree Menu Tree Listbox Intro TinyMCE CKEditor Flow Layout Flex Layout Segment Layout Label Layout Grid Layout Split Layout Message-layout Overview Collapsible Box Collapsible Popup Collapsible Panel Collapsible Section Content Validation JSR 303 Severity Messages Content Security Policy Sanitize Roles Form AccessKey Focus Exception Handler Style Tag Bootstrap Theme Icons Partial Ajax Behavior WebSocket Transition Non Faces Request Conversion Error Handling For Each ConversationScoped Download Configuration Format Locale DataAttribute Meta

Checkbox

The tag <tc:selectBooleanCheckbox/> generate a classic boolean checkbox.

Tag Library Documentation

Basics

<tc:selectBooleanCheckbox label="Checkbox" value="true"/>

ItemLabel

Simple Usage

In this example, the selected items are displayed in an output field after the submit-button is pressed.

<tc:selectBooleanCheckbox label="A" value="#{selectBooleanCheckboxController.a}"/> <tc:out label="Selected items: " value="#{selectBooleanCheckboxController.selectedItems}"/>

Ajax

The output fields always shows the current value of the checkbox. With <f:ajax render="output"/>, the output field will be rerendered, after the value changed in the <tc:selectBooleanCheckbox label="Character" value="false"/>. The ID of the output field and the value in the render attribute of the ajax tag has to be the same.

false
false
false

Images

<tc:selectBooleanCheckbox itemLabel="Japanese Yen" itemImage="/demo-6-snapshot/image/JPY-14.png"/> <tc:selectBooleanCheckbox itemLabel="Trinidad & Tobago Dollar" itemImage="/demo-6-snapshot/image/TTD-14.png"/> <tc:selectBooleanCheckbox itemLabel="US Dollar" itemImage="/demo-6-snapshot/image/USD-14.png"/> <tc:selectBooleanCheckbox itemLabel="Euro" itemImage="/demo-6-snapshot/image/EUR-14.png"/>
© 2005-2025 Apache Software Foundation, Licensed under the Apache License, Version 2.0.