aspose file tools
The moose likes JSF and the fly likes Rich:toggle panel post elements on toggle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Rich:toggle panel post elements on toggle" Watch "Rich:toggle panel post elements on toggle" New topic

Rich:toggle panel post elements on toggle

Vadim Vararu
Ranch Hand

Joined: Jan 03, 2009
Posts: 147
How could i submit elements contained in current togglePanel facet, when i change to another one?

If you think you've done too much, usually it means you've done too few.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16468

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.

Customer surveys are for companies who didn't pay proper attention to begin with.
Kiran Kodandoor

Joined: Sep 07, 2009
Posts: 5
Hi Vadim,

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

I agree. Here's the link:
subject: Rich:toggle panel post elements on toggle