|
|
Choosing A Webhost: |
Re: [shale-remote] SesionBeans in MyFaces/Portlet Application: msg#00108apache.shale.user
Could this have to do with the fact the portal container is going to namespace you session bean? In websphere portal it adds a prefix to the attribute name to sort of carve up the httpsession among portlets. Then your ajax request is coming in to the faces servlet where there is no namespace involved. So in that case you might get the bean created twice. I think that the myfaces impl only maps jsf session beans to the PORTLET session scope. But there really is no reason you couldn't change that to use the APPLICATION session scope instead. javax.portlet.PortletSession setAttribute(java.lang.String name, java.lang.Object value, int scope) Binds an object to this session in the given scope, using the name specified. setAttribute(java.lang.String name, java.lang.Object value) Binds an object to this session under the PORTLET_SCOPE, using the name specified. The key would be to override the myfaces portlet external context to use APPLICATION_SCOPE for the scope parameter. Thats just my guess for sharing beans between portlets and servlets. On 4/24/07, Gary VanMatre <gvanmatre@xxxxxxxxxxx> wrote: >From: "Strittmatter, Stephan" <Stephan.Strittmatter@xxxxxxxx>
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: [shale-remote] SesionBeans in MyFaces/Portlet Application, Gary VanMatre |
|---|---|
| Next by Date: | Shale dialog and t:dataScroller, Pich |
| Previous by Thread: | RE: [shale-remote] SesionBeans in MyFaces/Portlet Application, Gary VanMatre |
| Next by Thread: | Shale dialog and t:dataScroller, Pich |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |