Triggering Accordion on click of a button

Hi

I have a Accordion with 2 tabs. in first tab there is a button. On clicking this button it should open the second tab and close the first one. Is it possible to do this?

thanks

Hi,

just call Accordion.setSelectedTab(Component) from the ClickListener of your button.

-Tepi

thank you it worked