Hi Stefan, Can you move this question to the JBoss Portal forums? This way Julien from the JBoss Portal team will see it. He is the lead for JBoss Portal. I wrote the MyFacesGenericPortlet.
I haven't had time to think it all the way through, but I'm guessing that it will take all three of us to figure it out. Also, a test case would be a big help. Regards, Stan Silvert JBoss, Inc. [EMAIL PROTECTED] callto://stansilvert > -----Original Message----- > From: Stefan Tausendpfund [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 13, 2005 1:29 PM > To: users@myfaces.apache.org > Subject: Null Pointer Excetpion in MyFacesGenericPortlet > > Hello, > > we created an portal application on JBoss Server 4.0.3SP1 with portal > 2.0.1RC3 using myfaces MyFacesGenericPortlet. We have several pages and > several portlets in one page. > One portlet is present in all pages. If I make an action on this portlet > (portletwindow0) and switch the page (portletwindow1) i get an NPE in the > facesRender method of the MyFacesGenericPortlet. > The lookup of the faces context with > ServletFacesContextImpl facesContext = > (ServletFacesContextImpl)request. > getPortletSession(). > > getAttribute(CURRENT_FACES_CONTEXT); > returns a null object and the following statement > if (facesContext.getResponseComplete()) return; > fails. > On first entry of doView the getAttribure looks for an Attribute: > javax.portlet.p.<instance>.<portletwindow0>?org.apache.myfaces.portlet.M yF > acesGenericPortlet.CURRENT_FACES_CONTEXT > > After switching the page it looks for > javax.portlet.p.<instance>.<portletwindow1>?org.apache.myfaces.portlet.M yF > acesGenericPortlet.CURRENT_FACES_CONTEXT > > but the facescontext is still with the key window0 in the session. > > Using the same window name in different pages for the same portlet leeds > to > a portal error. > > Can you please help me here? > > Thanks in advance > Stefan > > _________________________________________________________________ > Sie suchen E-Mails, Dokumente oder Fotos? Die neue MSN Suche Toolbar mit > Windows-Desktopsuche liefert in sekundenschnelle Ergebnisse. Jetzt neu! > http://desktop.msn.de/ Jetzt gratis downloaden!