01 02 03 04 05 06 07 08 09 10 11 12 | <% PortletURL tabs1URL = renderResponse.createRenderURL(); String curP = ParamUtil.getString(request, "curP","update_password_tab"); String tabs = "update_password_tab,update_email_tab,update_portrait_tab"; %> < liferay-ui:tabs names="<%=tabs %>" param="curP" url="<%=tabs1URL.toString() %>" refresh="<%=true %>"> <% if(curP.equals("update_password_tab")){ %> <%@ include file="/html/userinfomanageraction/updatepassword/view.jsp" %> <%} %> <% if(curP.equals("update_email_tab")){ %> <%@ include file="/html/userinfomanageraction/updateemail/view.jsp" %> <%} %> <% if(curP.equals("update_portrait_tab")){ %> <%@ include file="/html/userinfomanageraction/updateportait/details.jsp" %> <%} %> </ liferay-ui:tabs > |
点击标签页,切换页面 但是不刷新的实现方式为:
01 02 03 04 05 06 07 08 09 10 11 12 13 14 | < liferay-ui:tabs names = "Sample Tab 1, Sample Tab 2, Sample Tab 3" refresh="<%= false %>" > < liferay-ui:section > sample 1 </ liferay-ui:section > < liferay-ui:section > sample 2 </ liferay-ui:section > < liferay-ui:section > sample 3 </ liferay-ui:section > </ liferay-ui:tabs > |