Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rich:toggle panel post elements on toggle

 
Vadim Vararu
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How could i submit elements contained in current togglePanel facet, when i change to another one?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18154
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A lot of JavaScript. Basically, monitor the focus and when it's transferred to a control outside the panel, submit the panel's form.

Or you could attach a submit to the form toggle event. But that wouldn't help if the user simply left the panel without toggling it. A tabbed panel might be better for that.
 
Kiran Kodandoor
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vadim,

Looks like you got richfaces working! Which application server you are using?

Thanks,
Kiran
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic