Forums de discussion

liferay-ui:tab is broken?

thumbnail
Puj Z, modifié il y a 13 années.

liferay-ui:tab is broken?

Regular Member Publications: 220 Date d'inscription: 14/01/10 Publications récentes
Hi,

I am trying to use liferay-ui:tab taglib in order to list the links on the top of my page in a standard liferay tab style. Here is my code:

<%

PortletURL tabsURL1 = renderResponse.createRenderURL();
tabsURL1.setParameter("javax.portlet.action", "takeAction1");


PortletURL tabsURL2 = renderResponse.createRenderURL();//PortletURLUtil.clone(tabsURL1, renderResponse); can be used to copy and add (not to copy and overwrite)
tabsURL2.setParameter("javax.portlet.action", "takeAction2");


PortletURL tabsURL3 = renderResponse.createRenderURL();
tabsURL3.setParameter("javax.portlet.action", "takeAction3");


String tabsNames = "action1,action2,action3";

%>

<liferay-ui:tabs names="<%= tabsNames %>" url0="<%= tabsURL1.toString() %>" url1="<%= tabsURL2.toString() %>" url2="<%= tabsURL3.toString() %>" />


The problem is that p_p_lifecycle is set to 0 in the final url of the tabs and therefore my action methods are not called.

Am I missing something or is this a bug?
I appreciate any help especially from liferay staff.
thumbnail
Minhchau Dang, modifié il y a 13 années.

RE: liferay-ui:tab is broken?

Liferay Master Publications: 598 Date d'inscription: 22/10/07 Publications récentes
If you need to call an actionURL, then you should call:

renderResponse.createActionURL()