This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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 Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Rich:toggle panel post elements on toggle" Watch "Rich:toggle panel post elements on toggle" New topic
Author

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: 17144
    
  27

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
Greenhorn

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

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

Thanks,
Kiran
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rich:toggle panel post elements on toggle
 
It's not a secret anymore!