You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2008/03/13 15:48:26 UTC
t5: onValidationFromForm ?
Hi,
following is the order of events fired when a form is submitted, I'd like to
avoid validation by setting a flag in the onSelectedFromBackButton, but
can't find a way, onValidateFromForm is always called before any onAction or
onSelected, even I do an ajax call to onSelectedFromBackupButton, any idea?
thanks
onValidateFromForm
onSelectedFromBackButton
--
View this message in context: http://www.nabble.com/t5%3A-onValidationFromForm---tp16026688p16026688.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: t5: onValidationFromForm ?
Posted by Dmitry Shyshkin <sh...@devoler.com>.
1. You may replace submit action with some other .I'am sure you do not
need form field values in case back button was pressed.
change
<input type="submit" value="back"/>
to
<input type="button" value="back"/> or <input type="reset" value="back"/>
2. In case if you need it you may set defer parameter to false in Submit
component and receive submit event before validation
Angelo Chen пишет:
> Hi,
>
> following is the order of events fired when a form is submitted, I'd like to
> avoid validation by setting a flag in the onSelectedFromBackButton, but
> can't find a way, onValidateFromForm is always called before any onAction or
> onSelected, even I do an ajax call to onSelectedFromBackupButton, any idea?
> thanks
>
> onValidateFromForm
> onSelectedFromBackButton
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org