I'll try again Igor.  :)  I'm using AjaxSubmitButtons because I want to
update the form on submit as well as on cancel.  Right now the
validation I have in place for the form requires I fill in all the
required fields whether the user wants to submit or cancel.  I want the
validation to apply just to the submit button.  From reading the docs
and examples it doesn't look like AjaxSubmitButtons has
defaultformprocessing(false)  only regular buttons do.  Is this correct?
I am looking for that functionality along with the abilty to update the
form via ajax target etc...

 

Thanks

 

John

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor
Vaynberg
Sent: Thursday, June 14, 2007 8:55 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] AjaxSubmitButton - Cancel

 

i dont understand. what is wrong with defaultformprocessing(false) ?

-igor



On 6/14/07, John Carlson < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:

I have a form with two ajaxbuttons, submit and cancel.  The form has a 
number of textfields that validate themselves 'onblur' using
ajaxformcomponentupdatingbehaviour.  What is the cleanest way to have
the cancel button ignore the validation that the submit button is
following?   I know regular buttons have this ability via the 
defaultformprocessing(false) but I want to update the form on cancel.
The best I have brainstormed would be to have the cancel button separate
from the form and some how or the other call update on the form from 
outside it.  Any thoughts would be appreciated.



Thanks in Advance,



John

_________________________________________________________________
Don't miss your chance to WIN $10,000 and other great prizes from
Microsoft 
Office Live http://clk.atdmt.com/MRT/go/aub0540003042mrt/direct/01/



------------------------------------------------------------------------
- 
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to