File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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: 17423

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.

An IDE is no substitute for an Intelligent Developer.
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
jQuery in Action, 3rd edition