Tapestry

Tapestry5 jQuery provides jQuery Components and can fully replace Prototype and Scriptaculous by jQuery

jQuery Accordion

Accordion Component

Description

This component allows you create a jquery ui accordion. Since Tapestry5-jQuery 3.0.2, a new implementation of this component has be developed, in order to avoid using JQueryAccordionData-type parameter. You can still use it, but this parameter and the JQueryAccordionData class will be removed in a next release.
If you use the new implementation (with the panels parameter), Tapestry5-jQuery will look for the label in an associated bundle, with the name of the panel as a key. If the message does not exist Tapestry5-jQuery will provide a default value : the name of the panel, with capital letters and spaces.

Links

Parameters
Name Required Java Type Default Prefix Default Value Description
panelsfalseStringliteralThe comma-separated list of panels name
listOfElements trueArrayList of JQueryAccordionDatapropbuttonDEPRECATED! A list of JQueryAccordionData (object containing the title of the tab and the name of the block that has the content).
activeElementId trueIntpropThe number of the accordion tab to activate when the page is displayed on the client.
params falseJSONObjectpropThe Accordion parameters (please refer to jquery-ui documentation)

Block1

Element 1


content from block 1

Block2

Element 2


content from block 2

Block3

Element 3


content from block 3

Block4

Element 4


content from block 4