RE: no go doView when switch tab

Scarletake Bwi, modified 3 Years ago. Expert Posts: 327 Join Date: 12/20/10 Recent Posts

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

thumbnail
Scarletake Bwi, modified 3 Years ago. 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.

Scarletake Bwi, modified 3 Years ago. Expert Posts: 327 Join Date: 12/20/10 Recent Posts

hi Mohammed

thank you so much for reply.