Re: Avoiding "validate" event after "canceled" from BeanEditForm

2011-07-22 Thread kleanthis
I had the same problem, and did't know about ValidationTracker.clear. I
solved this problem by using a flag. on selected from cancel button i set it
to true and in validation event i'd first check the flag, if true record
error and return.
i'll try the ValidationTracker now though.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Avoiding-validate-event-after-canceled-from-BeanEditForm-tp4616049p4621963.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: Avoiding "validate" event after "canceled" from BeanEditForm

2011-07-20 Thread nillehammer
Hi Matias,

you could call ValidationTracker.clear in your onCancel method. The
ValidationTracker is pushed onto the Environment by the Form. You'll get by
adding @Environmental private ValidationTracker tracker; to your
page-/component class.

Regards nillehammer

-
http://www.winfonet.eu
--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Avoiding-validate-event-after-canceled-from-BeanEditForm-tp4616049p4616607.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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