Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting value of request bean into other

 
sam sami
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic