掲示板

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

12年前 に Sarim Hussain によって更新されました。

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

New Member 投稿: 1 参加年月日: 11/01/21 最新の投稿
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.