Fórum

Liferay ui tab with resourceurl

thumbnail
Syed Nasar, modificado 7 Anos atrás.

Liferay ui tab with resourceurl

Junior Member Postagens: 64 Data de Entrada: 03/09/15 Postagens Recentes
Hi All,

Can anyone please help me out.
I want liferay ui tabs with two properties as follows

1.Page should not refresh on click on tab.
2.Initially all content should not load. Content should load only clicking on respective tab.(Because of performance issue).

My code is as follows.
<%
ResourceURL tabURL = renderResponse.createResourceURL();
	
    String tab = ParamUtil.getString(request, "myParam","Age");
%>
 
<liferay-ui:tabs names="Age,Rank,view" url="<%=tabURL.toString()%>" param="myParam"> 
 
    <c:if test="<%= tab.equalsIgnoreCase(&quot;Age&quot;)%>">      
        <jsp:include page="/Age.jsp" flush="true" />
    </c:if>
     
    <c:if test="<%= tab.equalsIgnoreCase(&quot;Rank&quot;)%>">     
        <jsp:include page="/Rank.jsp" flush="true" />
    </c:if>
     
    <c:if test="<%= tab.equalsIgnoreCase(&quot;view&quot;)%>">     
        <jsp:include page="/view.jsp" flush="true" />
    </c:if>
     
 
</liferay-ui:tabs>