Hello,

Stan Silvert asked me to also post the message from myfaces user forum here:
http://www.mail-archive.com/users%40myfaces.apache.org/msg13439.html
anonymous wrote : 
  | ---
  | 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..<portletwindow0>?org.apache.myfaces.portlet.MyFacesGenericPortlet.CURRENT_FACES_CONTEXT
  | 
  | After switching the page it looks for
  | 
javax.portlet.p..<portletwindow1>?org.apache.myfaces.portlet.MyFacesGenericPortlet.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
  | 
  | ----
  | 

I also made a small sample application showing this bug. Can i place it as 
attachment here?

regards
   Stefan




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912588#3912588

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912588


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to