Question

In liferay's tabs, liferays version is 6, element, how to control which tab to open, for example, if I go from one tab to another .jsp page, and return back, I need to be opened, the tab, from which I leave page? In tabs element I use sections.

Was it helpful?

Solution

Which version of Liferay? If 6 than you use param and value of tabs taglib

So

<liferay-ui:tabs names="Tab 1,Tab 2" tabsValues="tab1,tab2" param="tab" value="tab2" url0="<%= tab1URL %>" url1="<%= tab2URL %>" />

would set second tab active

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top