FacesContext fc = FacesContext.getCurrentInstance();
ValueBinding vb = fc.getApplication().createValueBinding("#{usuario}");
Usuario usr = (Usuario)vb.getValue(fc); //get the managed bean
usr.operations();
vb.setValue(fc,usr) //set the managed bean
On 2/14/06, Dave Brondsema <
[EMAIL PROTECTED]> wrote:
Use their 3rd solution (<managed-property>).
For any of the solutions they discuss, beans can be in any scope. They
just used 'session' as an example.
Mike Duffy wrote:
> This is a good FAQ:
>
> http://www.jsffaq.com/Wiki.jsp?ptitle=How+to+access+one+managed-bean+from+another+managed-bean%3F&page=HowToAccessOneManagedBeanFromAnotherManagedBean
>
> However, the solutions seem to require that both beans be in session scope.
>
> Let's say I have a form page that leads to another form page and I want the values from the first
> backing bean to available in the second backing bean AND I want to keep both backing beans in
> request scope (I just hate trashing up the sessions).
>
> Any suggestions on how to do this?
>
> Thx.
>
> Mike
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
--
Dave Brondsema
Software Developer
Cornerstone University
--
Dudu
----------
GoogleTalk: [EMAIL PROTECTED]
skype:eduardopichler

