SessionMap does not contain PORTLET_REQUEST_FLAG and JspViewHandlerImpl fails -----------------------------------------------------------------------------
Key: MYFACES-1508 URL: http://issues.apache.org/jira/browse/MYFACES-1508 Project: MyFaces Core Issue Type: Bug Components: Portlet_Support Affects Versions: 1.1.5-SNAPSHOT Environment: Liferay Mabon... Reporter: Balazs Zsoldos 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? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira