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

Multi Listbox

The <tc:selectManyListbox/> create a list, where more than one entry could be selected. Entries are added with <tc:selectItem/> (static) or <tc:selectItems value="#{controller.list}"/> (from controller).

Tag Library Documentation: <tc:selectManyListbox/> | <tc:selectItem/> | <tc:selectItems/>

Basics

In this example, there is a list with three items. The second one is disabled with the itemDisabled attribute of the tag.

Simple Usage

Select an entry and press the submit-button. The text in the output field depends on the selection.

<tc:selectManyListbox label="List" value="#{selectManyListboxController.celestials}"> <tc:selectItem itemLabel="Sun" itemValue="The sun, "/> ... </tc:selectManyListbox> <tc:out label="Selection" value="#{selectManyListboxController.celestial}"/>

Ajax

The selected deserts from the list, are shown in the <tc:out id="desertOutput" .../>. The value in the output field will be rerendered, after the selection in the list changed. For that, <tc:selectManyListbox label="Deserts" size="4" ...> contain a <f:ajax render="desertOutput"/> tag.

The number of rows is set to four by the size attribute. Is no size set, the height of the list depends of the number of rows. The list shows at least two rows. Values lower than two have no effect.

[]
© 2005-2025 Apache Software Foundation, Licensed under the Apache License, Version 2.0.