On Wed, 07 Sep 2011 23:06:17 -0300, dick_hu <dickan...@gmail.com> wrote:

tapesty has it's own submit way.

I disagree, as an ordinary HTML submit button <input type="submit"/> works with the Tapestry Form component, even if it has client-side validation or even AJAX updates.

Now I want do  some validate when I click the submit button
Is there any easy way to do it.

If you have validation applied to your edited object fields, be it by @Validate or Bean Validation annotations or even some other method, Tapestry already generates JavaScript code to validate client-side. Server side, just add an method annotated with @OnEvent(value = "validate", component = "your form or beaneditform t:id")

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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

Reply via email to