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
no go doView when switch tab
hi
i am using liferay 7.4.
here is my view.jsp
<%@ include file="/init.jsp" %>
<%
String titleCategory = LanguageUtil.get(request, Constant.LOT_TITLE_KEY_LOT_CATEGORY, Constant.LOT_TITLE_DEFAULT_LOT_CATEGORY);
String titleDetail = LanguageUtil.get(request, Constant.LOT_TITLE_KEY_LOT_DETAIL, Constant.LOT_TITLE_DEFAULT_LOT_DETAIL);
String currentTab = ParamUtil.getString(request, Constant.CURRENT_TAB_NAME, "");
String tabNames = titleCategory + "," + titleDetail ;
%>
<liferay-ui:tabs names="<%=tabNames%>" refresh="false" value="<%=currentTab %>">
<liferay-ui:section>
<%@include file="/jsptab/category.jsp"%>
</liferay-ui:section>
<liferay-ui:section>
<%@include file="/jsptab/detail.jsp"%>
</liferay-ui:section>
</liferay-ui:tabs>
i found that, when i switch tab, doView won't be triggered.
how can i to that? please please help, thanks in advance
Scarletake Bwi, modified 3 Years ago.
RE: no go doView when switch tab
(Answer)
Liferay Master
Posts: 593
Join Date: 8/8/14
Recent Posts
Hi ,
doView will be triggered when your view.jsp is loaded , in your case as tab refresh is set to false, it will not load the page.You can try making refresh=true then doView will load.
hi Mohammed
thank you so much for reply.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™