You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Chris Perfect <Ch...@macquarie.com> on 2007/01/16 05:13:17 UTC

Submit form and bypass validation

Is it possible to have a submit button on a form that can call a
listener bypassing any validation set for the form (without having to
explicitly code around validation in the listener)? This is useful when
buttons modify the structure of the form: e.g add or remove form
components.
 

Chris Perfect 
Macquarie Bank ISD (Real Estate) 
Ph.   N/A 
Mob. +61 423 041 240 

 

NOTICE
This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank.

Re: Submit form and bypass validation

Posted by Patrick Klein <pa...@bi-so.de>.
Hi!
> Is it possible to have a submit button on a form that can call a
> listener bypassing any validation set for the form (without having to
> explicitly code around validation in the listener)? This is useful when
> buttons modify the structure of the form: e.g add or remove form
> components.
>   
You could clear the errors saved in the forms delegate using its 
clearErrors() method in this specific listener.

    Patrick

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org