-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: bridge-impl-2.0.0, bridge-impl-3.0.0, bridge-impl-4.0.0
-
Fix Version/s: bridge-impl-2.1.0, bridge-impl-3.1.0, bridge-impl-4.1.0
-
Component/s: Liferay Faces Bridge Impl / Demos / Tests
-
Labels:None
The portletViewMode.jspx view has the following markup:
portletViewMode.jspx
<f:subview id="head"> <jsp:include page="styling.jspx" /> </f:subview> <f:subview id="applicant"> <jsp:include page="applicant.jspx" /> </f:subview>
After LPS-71904 is fixed and the bridge is enabled to use PortletRequestDispatcher.forward(PortletRequest,PortletResponse) instead of PortletRequestDispatcher.include(PortletRequest,PortletResponse) the view will generate an error similar to the following:
12:14:21,765 ERROR [PortletRequestDispatcherImpl] javax.servlet.ServletException: File "/styling.jspx" not found javax.servlet.ServletException: File "/view.jsp" not found
In order to fix this problem, the markup must be changed to specify a context-relative path:
portletViewMode.jspx
<f:subview id="head"> <jsp:include page="/WEB-INF/views/styling.jspx" /> </f:subview> <f:subview id="applicant"> <jsp:include page="/WEB-INF/views/applicant.jspx" /> </f:subview>