Skip to content

Instantly share code, notes, and snippets.

@amitccet
Last active December 18, 2015 23:59
Search Container View.jsp
<!-- Making the Render URL and we are passing TAB parameter -->
<liferay-portlet:renderurl var="portletURL">
<liferay-portlet:param name="tabs" value="${tabs}"></liferay-portlet:param>
</liferay-portlet:renderurl>
<!-- Using default Liferay UI Tab in order to show the Tab View -->
<liferay-ui:tabs names="UserGroup,User" param="tabs" refresh="<%= true %>" url="<%=portletURL %>">
<!-- We are going to display two tabs so there will be two Sections in the Tab -->
<liferay-ui:section>
<c:if test="${tabs eq 'UserGroup'}">
<%@include file="/html/portlet/searchcontainer-with-tabs/tabs/usergroup.jsp" %>
</c:if>
</liferay-ui:section>
<liferay-ui:section>
<c:if test="${tabs eq 'User'}">
<%@include file="/html/portlet/searchcontainer-with-tabs/tabs/user.jsp" %>
</c:if>
</liferay-ui:section>
</liferay-ui:tabs>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment