Foren

Problem with liferay-ui:tabs

Manuel Pastor, geändert vor 11 Jahren.

Problem with liferay-ui:tabs

New Member Beiträge: 13 Beitrittsdatum: 05.03.13 Neueste Beiträge
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!
thumbnail
Rahul Pande, geändert vor 11 Jahren.

RE: Problem with liferay-ui:tabs

Expert Beiträge: 310 Beitrittsdatum: 07.07.10 Neueste Beiträge
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
thumbnail
Amit Doshi, geändert vor 11 Jahren.

RE: Problem with liferay-ui:tabs

Liferay Master Beiträge: 550 Beitrittsdatum: 29.12.10 Neueste Beiträge
Hi Manuel,

Please check this link for the liferay ui tab.

Thanks & Regards,
Amit Doshi