Foren

not showing the jsp pages of tabs with liferay ui tabs

Kiran Kumar Boyini, geändert vor 11 Jahren.

not showing the jsp pages of tabs with liferay ui tabs

Expert Beiträge: 287 Beitrittsdatum: 02.06.11 Neueste Beiträge
Hi All,

I am trying to use liferay ui tabs ,but I am not able to see the effects when i clicked on the tab w r to jsp.

i.e., not able to see the jsp page when i click on the tab.

see the code below:


String tabs = null;		
		if(renderRequest.getParameter("tabs") != null)  tabs = renderRequest.getParameter("tabs");			
		else tabs = ParamUtil.getString(request, "tabs", "ADD"); 		
		PortletURL portletURL = renderResponse.createRenderURL();		
		portletURL.setWindowState(WindowState.NORMAL);		
		portletURL.setParameter("tabs", tabs);		
		String tabNames = "ADD,UPDATE";
		<liferay-ui:tabs names="<%= tabNames %>" url="<%= portletURL.toString() %>" />
		<c:if test="<%= tabs.equals(&quot;ADD&quot;) %>">
		&lt;%@ include file="/addEmployee.jsp" %&gt;		
		</c:if>	
		<c:if test="<%= tabs.equals(&quot;UPDATE&quot;) %>">	
		<liferay-util:include page="/updateEmployee.jsp" />			
		</c:if>


Help me out am I missing any thing ?

Regards,

Kiran.
thumbnail
Juhi Kumari, geändert vor 11 Jahren.

RE: not showing the jsp pages of tabs with liferay ui tabs

Expert Beiträge: 347 Beitrittsdatum: 12.12.11 Neueste Beiträge
Hi Kiran,

I modified your code. Now its working fine.

&lt;%
String tabValue = ParamUtil.getString(request, "tab", "add");
String tabsURL = "/html/test/" + tabValue.trim() + ".jsp";
String tabNames = "ADD,UPDATE";
String tabVal="add,update" ;
%&gt;
<liferay-portlet:renderurl var="portletURL" />
<liferay-ui:tabs names="<%=tabNames%>" tabsValues="<%=tabVal%>" param="tab" url="<%= portletURL.toString() %>" />
<c:import url="<%= tabsURL %>"></c:import>


Regards
Juhi
Kiran Kumar Boyini, geändert vor 11 Jahren.

RE: not showing the jsp pages of tabs with liferay ui tabs

Expert Beiträge: 287 Beitrittsdatum: 02.06.11 Neueste Beiträge
Hi Juhi kumar,

Thank you for valuable information.

Will it work in liferay 6.1,I am using the mvc portlet.

Regards,

Kiran.
thumbnail
Juhi Kumari, geändert vor 11 Jahren.

RE: not showing the jsp pages of tabs with liferay ui tabs

Expert Beiträge: 347 Beitrittsdatum: 12.12.11 Neueste Beiträge
Hi,

It is working in LR6.1 also.

Regards
Juhi
Kiran Kumar Boyini, geändert vor 11 Jahren.

RE: not showing the jsp pages of tabs with liferay ui tabs

Expert Beiträge: 287 Beitrittsdatum: 02.06.11 Neueste Beiträge
Thank you....