Hello everyone,

im developing Portlets using JBoss. I have 2 managed-Beans, one session and one 
request-scoped. In my request scoped bean i`m parsing the parameterMap. If the 
portlet is called with some specific parameters, id like to inject them into my 
session scoped bean. Searching for a solution for this task i found seveal 
methods at 
http://balusc.blogspot.com/2006/06/communication-in-jsf.html#AccessingAnotherManagedBean
 None of them is working. Can someone help me?


my faces-config:

  | 
  |             <managed-bean>
  |                 <managed-bean-name>e2e</managed-bean-name>
  |                 
<managed-bean-class>com.e2e.portal.ta.beans.BigBean</managed-bean-class>
  |                 <managed-bean-scope>session</managed-bean-scope>
  |         </managed-bean>
  |          
  |         <managed-bean>
  |                     <managed-bean-name>mailPlanning</managed-bean-name>
  |                     
<managed-bean-class>com.e2e.portal.ta.beans.MailPlanningBean</managed-bean-class>
  |                     <managed-bean-scope>request</managed-bean-scope>        
            
  |             </managed-bean>        
  | 

part of mailPlanning:


  | 
  |     BigBean bB1 = (BigBean) 
FacesContext.getCurrentInstance().getExternalContext()
  |         .getSessionMap().get("e2e");
  |             
  |             Map sesMap = 
FacesContext.getCurrentInstance().getExternalContext().getSessionMap();
  |             Map reqMap = 
FacesContext.getCurrentInstance().getExternalContext().getRequestMap();
  |             FacesContextImpl context = (FacesContextImpl) 
(FacesContext.getCurrentInstance());
  |         BigBean bB = (BigBean) 
context.getELContext().getELResolver().getValue(context.getELContext(), null, 
"e2e");
  | 
  | 

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237818
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to