I'm not sure if this is deliberate or not, but here goes...

I've got a form with some fields that have client side validation. I've also
got a linksubmit button for cancelling the  action if wanted, with the flag
t:mode=cancel.

In itself, this is working fine, *but* I've also got the t:errors component
in the form to show validation errors, and this is always getting shown with
the validation errors, whether the submit is acting on the validation or
not.

An example of this is shown in the JumpStart page - 
http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/formsinaloopwithdeh
Ajax Forms in a Loop (With Deleted Entity Handling) 

Pick any of the rows and click the Edit button. Clear the First Name on the
row, and then press Cancel. The row goes back to its original state, so the
validation hasn't activated, but you still see the error message 'You must
provide a value for First Name.'

Surely this component display should not be rendered if the validation is
not required?


Cheers

Lance



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/linksubmit-t-mode-CANCEL-and-t-errors-tp5714696.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

Reply via email to