RSS

Using Liferay-ui:tabs

Example how use liferay-ui:tabs in a jsp:


<%
String tabs1 = ParamUtil.getString(request, "tabs1", "");

PortletURL portletURL = renderResponse.createRenderURL();
portletURL.setWindowState(WindowState.NORMAL);

portletURL.setParameter("tabs1", tabs1);

String tabNames = "Generales,Correo";
%>

<liferay-ui:tabs
names="Generales,Correo"
url="<%= portletURL.toString() %>"
/>

<c:if test='<%= tabs1.equals("Generales") || (tabs1.equals("")) %>'>

....Your code....

</c:if>

<c:if test='<%= tabs1.equals("Correo") %>'>

....Your code....

</c:if>