Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Richfaces simpleTogglePanel

 
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: 18419
60
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!