Re: clientsidevalidate show only 1 error

2010-06-04 Thread asianCoolz
form.js is inside tapestry-framework.jar . how to make my project use my custom form.js rather than inside tapestry-framework.jar ? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands,

Re: clientsidevalidate show only 1 error

2010-06-04 Thread Andreas Andreou
it's easier if you just include a second file that only contains the changes So, if in that file you do tapestry.form.validation.processResults = function() ... it'll override the original one Another idea is to plave the js in WEB-INF/classes/js/tapestry-4.1.6 and the servlet container will

clientsidevalidate show only 1 error

2010-06-03 Thread asianCoolz
currently if my page have 3 compulsory textinput and all 3 compulsory textinput are not entered, a pop up error will showed 3 rows of compulsory fields not fill in. can it be limit to only show 1 error at a time rather than like below? *please fill in the textinputA *please fill in the textinputB

Re: clientsidevalidate show only 1 error

2010-06-03 Thread Joost Schouten (ml)
If client side validation is not a requirement for you, you can turn off client side validation by adding t:clientValidation=false to your form and add the t:errors/ tag in the form. Like: t:form t:clientValidation=false t:errors/ your form fields ... /t:form I am not aware of any

Re: clientsidevalidate show only 1 error

2010-06-03 Thread asianCoolz
nope, i do not want to turn off clientsidevalidation. i want to use it, but i only want to show 1 error at a time. i'm using tapestry4 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands,

Re: clientsidevalidate show only 1 error

2010-06-03 Thread Joost Schouten (ml)
Ah sorry, I assumed tapestry 5. I have no experiance with tapestry 4 so will have to leave this question to somebody else. Good luck, Joost asianCoolz wrote: nope, i do not want to turn off clientsidevalidation. i want to use it, but i only want to show 1 error at a time. i'm using tapestry4

Re: clientsidevalidate show only 1 error

2010-06-03 Thread Andreas Andreou
Yes, it is possible You'll have to investigate and override (or dojo.event.connect or dojo.event.connectAround) the following functions: tapestry.form.validation.processResults tapestry.form.validation.summarizeErrors