myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angel Miralles Arevalo <anmiral...@yahoo.es>
Subject Re: Instantiate a backing bean from other
Date Thu, 26 Jul 2007 14:15:15 GMT
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 <danielccss2@gmail.com>
Para: MyFaces Discussion <users@myfaces.apache.org>
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!
http://advision.webevents.yahoo.com/reto/entretenimiento.html
Mime
View raw message