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

Overview

Warning! This feature is preliminary and may be subject of change in later versions!

The collapsible concept is the base for Box, Popup, Panel and Section. It determines how parts or whole components are shown or hidden. For example, a popup is hidden completely while for box only the content could be hidden.

States

There are four possible states - visible, hidden, absent and none.
The value 'none' deactivate this feature and is the default for box, panel and section.

The (not-'none') states are explained using the following boxes.

The 'visible' state show the content of the box like you expected.
The 'hidden' state hide the content via CSS. You can see is still in the source code. This also means that hidden content would be validated when submitted, e.g. a required input field.
The 'absent' state don't even render the content of the box.

Visible

Content

Hidden

Content

Absent

Attributes

The state can be changed by the server with the attributes collapsed and collapsedMode.

collapsed

The collapsed attribute is of type boolean. The default value is 'false'.

  • false (default): The state is 'visible'.
  • true: The state is 'hidden' or 'absent', depending on the collapsedMode attribute.

collapsedMode

The attribute collapsedMode determine the behavior of a hidden component. Possible values are absent which is the default and hidden. It has only an effect if collapsed="true".

  • absent (default for popup): Hidden components have the state 'hidden'.
  • hidden: Hidden components have the state 'absent'.

Operation

<tc:operation name="show|hide" for="[ID]"/>

Operations can be used to change the state client side. It can be placed within a <tc:button/> tag or a <tc:link/> tag. The name of the transition can be set in the name attribute. Values are 'show' and 'hide'.

  • show: Change the state to 'visible'.
  • hide: Set the state to 'absent' or 'hidden', depending on collapsedMode.

The for attribute has to contain the ID of the component on which the transition should be executed. Both attributes are mandatory.

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