掲示板
Tab Menu
Hi guys,
I am new to liferay, please can anyone help out how to use tab menu in liferay pages or web content.
Thanks
I am new to liferay, please can anyone help out how to use tab menu in liferay pages or web content.
Thanks
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
Or you can use navigation portlet and design it in the from of tabs using script and css
Hey Muthu,
Use below code to create tabs In jsp.
And in controller you can check which tab is clicked based on that you set the view as below
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;
}