Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Fixing aui:tabs in jsp liferay 7.1.3 community edition
Dear 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>
i 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
Powered by Liferay™