Fórum

Tab Menu

Muthu RP, modificado 10 Anos atrás.

Tab Menu

New Member Postagens: 17 Data de Entrada: 02/05/13 Postagens Recentes
Hi guys,
I am new to liferay, please can anyone help out how to use tab menu in liferay pages or web content.

Thanks
thumbnail
Bart Simpson, modificado 10 Anos atrás.

RE: Tab Menu

Liferay Master Postagens: 522 Data de Entrada: 29/08/11 Postagens Recentes
You'll have to create tabs using AUI component http://deploy.alloyui.com/api/classes/Tab.html
Or you can use navigation portlet and design it in the from of tabs using script and css
thumbnail
Tejas patel, modificado 10 Anos atrás.

RE: Tab Menu

Junior Member Postagens: 71 Data de Entrada: 24/01/12 Postagens Recentes
Hey Muthu,

Use below code to create tabs In jsp.

<portlet:renderurl var="changeTabURL">
	<portlet:param name="action" value="changeTab" />
</portlet:renderurl>
<liferay-ui:tabs names="tab1,tab2,tab3,tab4,tab5" param="clickedTab" url="<%= changeTabURL.toString() %>" />



And in controller you can check which tab is clicked based on that you set the view as below



       if (ParamUtil.getString(renderRequest, "clickedTab").equalsIgnoreCase("tab1"))
        {
            return tab1;
        }