This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 17011

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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: getting value of request bean into other
It's not a secret anymore!