Forums de discussion

How to add sections through a for loop inside liferay-ui: tabs?

Sarim Hussain, modifié il y a 12 années.

How to add sections through a for loop inside liferay-ui: tabs?

New Member Envoyer: 1 Date d'inscription: 21/01/11 Publications récentes
Here is a sample code to show what i mean:-

<liferay-ui:tabs names="<%=categoryNamesCommaSeparated %>" refresh="<%=false%>">
<%
for(int j=0;j<list.size();j++){
%>
<liferay-ui:section>
<%@ include file="/html/portlet/ext/some.jsp" %>
</liferay-ui:section>
<% } %>

</liferay-ui:tabs>

However, the problem is that it does not work, as in, it only displays the last tab's content if clicked upon.