On your validation method, why are you throwing an exception ?! You should
have in injected form component and record an error in it.

@InjectComponent
private Form *componentId*;

Then in your validation method:
*componentId* .recordError (Or something similar)

Also using an @OnEvent annotation on event methods makes it a lot precise,
or at least I find it so.

Good luck.

On Sat, Mar 24, 2012 at 2:01 PM, Borko Djurovic <[email protected]>wrote:

> Replace onSubmit... with onSuccess... The main difference is that onSuccess
> handler will be called only when validation is passed. Handler onSubmit is
> called every time you submit form.
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/onValidate-behave-strange-tp5587786p5591585.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
*Regards,*
*Muhammad Gelbana
Java Developer*

Reply via email to