Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Manuel Pastor
Problem with liferay-ui:tabs
April 19, 2013 12:01 AM
Answer

Manuel Pastor

Rank: New Member

Posts: 13

Join Date: March 5, 2013

Recent Posts

Hi,
I have this problem using Liferay's tabs:

The jsp code is like that:

<% PortletURL portletURL = renderResponse.createRenderURL(); %>
<liferay-ui:tabs names="<%=tabNames%>" url="<%=portletURL.toString()%>" />
<c:if test='<%=tabs1.equals("Endpoint")%>'>
<liferay-util:include page="html/sections/endpoints.jsp" />
</c:if>

When I click on the tab, it doesn't include the page html/sections/endpoints.jsp! and it shows this error:
Path html/sections/endpoints.jsp is not relative to context root

But if I put this code the first inside the jsp:
<%@ include file="html/sections/endpoints.jsp" %>

The endpoints.jsp shows ok, but it's always show.

Thanks!
Rahul Pande
RE: Problem with liferay-ui:tabs
April 22, 2013 12:00 AM
Answer

Rahul Pande

Rank: Expert

Posts: 308

Join Date: July 6, 2010

Recent Posts

Hi Manuel,

You path for the html is not correct. You are missing forward slash before html.

Try changing path to /html/sections/endpoints.jsp instead of html/sections/endpoints.jsp .

Please refer this link.

HTH
Rahul
Amit Doshi
RE: Problem with liferay-ui:tabs
April 22, 2013 1:01 AM
Answer

Amit Doshi

Rank: Liferay Master

Posts: 549

Join Date: December 29, 2010

Recent Posts

Hi Manuel,

Please check this link for the liferay ui tab.

Thanks & Regards,
Amit Doshi