Forums de discussion

Problem with liferay-ui:tabs

Manuel Pastor, modifié il y a 11 années.

Problem with liferay-ui:tabs

New Member Publications: 13 Date d'inscription: 05/03/13 Publications récentes
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, modifié il y a 11 années.

RE: Problem with liferay-ui:tabs

Expert Publications: 310 Date d'inscription: 07/07/10 Publications récentes
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, modifié il y a 11 années.

RE: Problem with liferay-ui:tabs

Liferay Master Publications: 550 Date d'inscription: 29/12/10 Publications récentes
Hi Manuel,

Please check this link for the liferay ui tab.

Thanks & Regards,
Amit Doshi