Foros de discusión

How to add Tabs to portlet-Urgent

Srinath Reddy, modificado hace 12 años.

How to add Tabs to portlet-Urgent

New Member Mensajes: 6 Fecha de incorporación: 18/05/11 Mensajes recientes
Hi ,
Can anyone help me how to add tabs in portlet and how to invoke that actionURL.
Oliver Bayer, modificado hace 12 años.

RE: How to add Tabs to portlet-Urgent

Liferay Master Mensajes: 894 Fecha de incorporación: 18/02/09 Mensajes recientes
Hi Srinath,

all you have to do is to add a new language key to the "names" attribute of the ui-tabs or add it in the java-code of the jsp. Take a look e.g. at the "configuration.jsp" of the calendar-portlet.
<liferay-ui:tabs names="email-from,event-reminder-email,display-settings" param="tabs2" url="<%= portletURL %>" />

Later on in the code you can check which tab has been selected.
<c:when test="<%= tabs2.equals(&quot;email-from&quot;) %>"></c:when>

HTH Oli