It's not a secret anymore!*
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
Author

getting value of request bean into other

sam sami
Greenhorn

Joined: Dec 22, 2010
Posts: 18
Hello,

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?

Thanks,
Ilari Moilanen
Ranch Hand

Joined: Apr 15, 2008
Posts: 198
I do not know it there is a more elegant solution but you can try this
http://www.coderanch.com/t/518261/JSF/java/Pasing-values-between-beans
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
Don't get me started about those stupid light bulbs.
 
subject: getting value of request bean into other