Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.1.5-SNAPSHOT
-
None
-
None
-
Liferay Mabon...
Description
Hi,
I had an exception and after a couple of hours debugging I think I found the cause of the problem. I would suggest some possibility to solve the problem as well.
On the line 194 of the class JspViewHandlerImpl the following code can be foud:
if (PortletUtil.isPortletRequest(facesContext))
{ externalContext.dispatch(viewId); return; }The PortletUtil.isPortletRequest returns false for me although I develop a portlet JSF component. The cause of this that the isPortletRequest function checks whether the sessionMap of the ExternalContext contain the PORTLET_REQUEST_FLAG key or not. It does not because the getSessionMap() function of the ExternalContextImpl creates the map if it is null and it does not put this key into the map. I think it should do it in the constructor.
Could you please check if it is true what I am saying? I wanted to make the chapter 6 project of the "Pro Jsf And Ajax" book work in a Liferay environment when I found this.
Could you please check if this is a bug or not?