Make a tabs view in liferay using <liferay-ui:tabs>
String tabNames = "Posts,Replied To,Following";
portletURL.setParameter("tabs1", tabs1);
portletURL.setWindowState(WindowState.NORMAL);
portletURL.setParameter("userId",
((Long) renderRequest.getAttribute("userId")).toString());
<liferay-ui:tabs names="<%=tabNames%>"
url="<%=portletURL.toString()%>" />
<c:if test="<%tabs1.equalsIgnoreCase("Posts")%>">
<div class="ForumProfile" style="padding-top: 0px;">
<%@ include file="posts.jsp"%>
</div>
</c:if>
<c:if test="<%tabs1.equalsIgnoreCase("Replied To")%>">
<div class="ForumProfile" style="padding-top: 0px;">
<%@ include file="replied.jsp"%>
</div>
</c:if>
<c:if test="<%tabs1.equalsIgnoreCase("Following")%>">
<div class="ForumProfile" style="padding-top: 0px;">
<%@ include file="following.jsp"%>
</div>
</c:if>
No comments:
Post a Comment