Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Richfaces simpleTogglePanel  RSS feed

 
Jason O'Brien
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am trying to modify existing code that uses a simpleTogglePanel where each simpleTogglePanel has a couple fields that can be changed.

Basically I want to set a boolean value based on whether any one of the fields inside the simpleTogglePanel have been changed. I would like to avoid having to put a change listener on each and every field.

Does anyone know if it is possible to apply a change listener to the entire panel? Or if there is another solution?

Thanks,
Jason
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry. You'll have to set a listener for every value, I think. RichFaces may have a control that can fire on multiple controls being monitored - there's a set of tags that do fairly arcane things - but if so, it wouldn't be related to a specific control type such as a panel or its children.
 
Jason O'Brien
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, thanks Tim, much appreciated
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!