File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes getting value of request bean into other Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "getting value of request bean into other " Watch "getting value of request bean into other " New topic

getting value of request bean into other

sam sami

Joined: Dec 22, 2010
Posts: 18

I have an ICEFaces we application. One page has two beans that display different things on the page.

I want to be able to notify one bean when another bean changes something on the bean so that the first bean update its content on the page.

Is that possible in ICEFaces? if so how?

Ilari Moilanen
Ranch Hand

Joined: Apr 15, 2008
Posts: 199
I do not know it there is a more elegant solution but you can try this
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

It's possible even without IceFaces. It's part of basic JSF. Just inject the second bean into the first one as a managed property. When the first bean changes, have it call a method in the second bean to notify it of the changes.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: getting value of request bean into other
jQuery in Action, 3rd edition