Message Boards
Fixing aui:tabs in jsp liferay 7.1.3 community edition
Fixing aui:tabs in jsp liferay 7.1.3 community edition
New Member Posts: 9 Join Date: 2/15/15 Recent PostsDear Community,
I have developed an aui:tabs and the issue is switching tabs isn't
working. I cannot switch between tabs. I want to know what is the
issue with my code:
<%@ include file="init.jsp"%>
<portlet:renderURL var="tabURL"/>
<%
String tabValue = ParamUtil.get(request,
"myParam",
"personalInfo");
%>
<liferay-ui:tabs
type="pills" refresh="false"
names="site.personalInfo,site.education"
url="<%=tabURL.toString()%>"
value="<%=tabValue %>"
param="myParam"
tabsValues="personalInfo,education">
<c:if test='<%=
tabValue.equalsIgnoreCase("personalInfo")%>' >
<jsp:include page="/personalInfo.jsp"
flush="true" />
</c:if>
<c:if test='<%=
tabValue.equalsIgnoreCase("education")%>' >
<jsp:include page="/education.jsp"
flush="true" />
</c:if>
</liferay-ui:tabs>
RE: Fixing aui:tabs in jsp liferay 7.1.3 community edition
Expert Posts: 326 Join Date: 12/20/10 Recent Postsi have same problem, and it work on 6.2
i beleve this can help
my view.jsp
<liferay-portlet:renderURL var="portletURL">
<liferay-portlet:param name="<%=Constant.CURRENT_TAB_NAME%>" value="<%=currentTab %>" />
</liferay-portlet:renderURL>
<c:set var="tab1" value="<%=titleSafty%>" />
<c:set var="tab2" value="<%=titlePartNumberName%>" /><liferay-ui:tabs names="<%=tabNames%>" param="<%=Constant.CURRENT_TAB_NAME%>" refresh="<%=true%>" url="<%=portletURL%>">
<liferay-ui:section>
<%@include file="/jsptab/pabe1.jsp"%>
</liferay-ui:section>
<liferay-ui:section>
<%@include file="/jsptab/page2.jsp"%>
</liferay-ui:section>
</liferay-ui:tabs>
and in my portlet
actionResponse.getRenderParameters().setValue(Constant.CURRENT_TAB_NAME, <page1 or page2>);
good luck