Fórum

Problem with liferay-ui:tabs

Manuel Pastor, modificado 11 Anos atrás.

Problem with liferay-ui:tabs

New Member Postagens: 13 Data de Entrada: 05/03/13 Postagens Recentes
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, modificado 11 Anos atrás.

RE: Problem with liferay-ui:tabs

Expert Postagens: 310 Data de Entrada: 07/07/10 Postagens Recentes
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, modificado 11 Anos atrás.

RE: Problem with liferay-ui:tabs

Liferay Master Postagens: 550 Data de Entrada: 29/12/10 Postagens Recentes
Hi Manuel,

Please check this link for the liferay ui tab.

Thanks & Regards,
Amit Doshi