You add two different submit buttons in the HTML and label them different.
Then for each one you run the different save business logic inside their own
onSubmit() methods.

There is nothing preventing you from submitting a form from different submit
buttons.

~ Thank you,
  Paul Bors

-----Original Message-----
From: Richard W. Adams [mailto:rwada...@up.com] 
Sent: Tuesday, September 10, 2013 8:59 AM
To: users@wicket.apache.org
Subject: Cancel Button Conundrum

I need to create a Cancel button that warns the user about saved data on a
form before leaving the page. Thus, I can't call setDefaultFormProcessing
(false), since that would cause the data not be transferred to the model. 
But I ALSO don't want the page to complain about missing or invalid fields.

What's the best way to accomplish these goals?


**

This email and any attachments may contain information that is confidential
and/or privileged for the sole use of the intended recipient.  Any use,
review, disclosure, copying, distribution or reliance by others, and any
forwarding of this email or its contents, without the express permission of
the sender is strictly prohibited by law.  If you are not the intended
recipient, please contact the sender immediately, delete the e-mail and
destroy all copies.
**


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to