Foros de discusión
Problem with liferay-ui:tabs
Manuel Pastor, modificado hace 11 años.
Problem with liferay-ui:tabs
New Member Mensajes: 13 Fecha de incorporación: 5/03/13 Mensajes recientes
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!
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, modificado hace 11 años.
RE: Problem with liferay-ui:tabs
Expert Mensajes: 310 Fecha de incorporación: 7/07/10 Mensajes recientes
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
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, modificado hace 11 años.