There are 2 other ways here (so the choice is yours): 
http://jsffaq.com/Wiki.jsp?ptitle=How+to+access+one+managed-bean+from+another+managed-bean%3F&page=HowToAccessOneManagedBeanFromAnotherManagedBean

________________________________________
From: Angel Miralles Arevalo [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 26, 2007 10:15 AM
To: MyFaces Discussion
Subject: Re: Instantiate a backing bean from other

It isn't necesary managed bean in session scope, for example:
 
AuthorizationMembersGroupBean menGroup = (AuthorizationMembersGroupBean) 
getApplication().createValueBinding("#{requestScope.authorizationMembersGroupBean}").getValue(facesContext);
 
getApplication().createValueBinding("#{requestScope.authorizationMembersGroupBean}").setValue(facesContext,menGroup);

What you need to know is than you obtain the managed bean, alter it and you 
have to update it in facesContext...the second line...
----- Mensaje original ----
De: daniel ccss <[EMAIL PROTECTED]>
Para: MyFaces Discussion <[email protected]>
Enviado: jueves, 26 de julio, 2007 15:56:25
Asunto: Instantiate a backing bean from other
Is there a way to use a BackingBean from another BackingBean o another class, 
the scope of the backing bean is session.
 
For example I need to call the get method of a variable of a BackingBean on 
another Backing Bean
 
It is possible or I´m to crazy?


________________________________________

Sé un Mejor Amante del Cine
¿Quieres saber cómo? ¡Deja que otras personas te ayuden! .



NOTICE: This message (including any attachments) from Momentum Systems, Inc. 
contains information that is PRIVILEGED and CONFIDENTIAL.  If you are not an 
intended recipient, you are hereby notified that any dissemination of this 
message is strictly prohibited.  If you have received this message in error, 
please do not read, copy or forward this message.  Please permanently delete 
all copies and any attachments and notify the sender immediately by reply email 
or by calling our Office at 703.740.9300.

Reply via email to