Liferay UI 选项卡导航问题

Issue with Liferay UI tab Navigation

我正在使用 <liferay-ui:tabs> 将 jsp 页面显示为选项卡。我能够将我的页面视为选项卡,但如果我导航到选项卡中的一个页面并单击按钮,那么它将导航到其他页面,它显示在单独的页面中而不是显示在该选项卡下。我需要单击按钮事件控件应该仍在选项卡下。我的代码如下,

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"     
    pageEncoding="ISO-8859-1"%><%@include file="/html/users/init.jsp"%>
<portlet: defineObjects />
<portlet:renderURL var="navigateTabURL"/>
<% String navigateTab = ParamUtil.getString(request, "tabs1","Current"); %>
<liferay-ui:tabs names="Current, Available" url="<%=navigateTabURL.toString()%>" >
    <c:if test='<%= navigateTab.equalsIgnoreCase("Current")%>' >
        <jsp:include page="current_members.jsp" flush="true" />
    </c:if>
    <c:if test='<%= navigateTab.equalsIgnoreCase("Available")%>' >
        <jsp:include page="available_members.jsp" flush="true" />
    </c:if>
</liferay-ui:tabs>

页面 "Current" 和 "Available" 显示正确,但是如果我单击当前页面中的任何按钮,它会导航到其他 jsp 我需要那个 jsp 也在该选项卡下,仅不显示为单独的页面。

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" 
    pageEncoding="ISO-8859-1"%><%@include file="/html/users/init.jsp"%>
<portlet: defineObjects />
<%
    List<User> userList = (List) request.getAttribute("UserGroupList");        
    //out.println(userList.size());
%>
<%! 
    List<User> users = null;
    int totalNoOfUsers=0;
    String value = null;
%>
<%
    //totalNoOfUsers = UserLocalServiceUtil.getUsersCount();
    totalNoOfUsers = userList.size();
    users = userList;
%>

<liferay-ui:search-container delta="5" emptyResultsMessage="no-users-were-found" rowChecker="<%= new RowChecker(renderResponse) %>" >
    <liferay-ui:search-container-results results="<%= ListUtil.subList(users,searchContainer.getStart(),searchContainer.getEnd()) %>"
    total="<%= totalNoOfUsers %>">
    </liferay-ui:search-container-results>
    <liferay-ui:search-container-row className="com.liferay.portal.model.User" keyProperty="userId"        modelVar="user">
        <liferay-ui:search-container-row-parameter name="userIds" value="<%= user.getUserId()%>">
        </liferay-ui:search-container-row-parameter>
        <liferay-ui:search-container-column-text name="UserName" value="
            <%= user.getScreenName()%>" />
            <liferay-ui:search-container-column-text name="First Name" value="<%= user.getFirstName() %>">
            </liferay-ui:search-container-column-text>
            <liferay-ui:search-container-column-text name="Last Name" value="<%= user.getLastName() %>">
            </liferay-ui:search-container-column-text>
            <liferay-ui:search-container-column-jsp align="right" path="/html/users/custom_user_actions.jsp" />
        </liferay-ui:search-container-row>
        <liferay-ui:search-iterator />
    </liferay-ui:search-container>
<liferay-ui:search-container delta="5" emptyResultsMessage="no-users-were-found" />

<portlet:actionURL name="viewEntry" var="viewEntryURL"></portlet:actionURL>
<aui:form action="<%= viewEntryURL %>" name="<portlet:namespace />fms">
    <aui:button type="submit" value="Cancel"></aui:button>
</aui:form>

如何将选项卡导航为动态请求。请有任何建议!

要保留选项卡 selection,"value" 属性应与选项卡名称一起提及 select。 如果未指定 "value" 属性,则第一个选项卡将被视为活动。

例如,请参考liferay门户源中的以下文件。

portal-web/docroot/html/portlet/dockbar/add_panel.jsp

此外,liferay 论坛中的 post 下方应该有所帮助。

http://www.liferay.com/en_GB/community/forums/-/message_boards/message/4809190