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,
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
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
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
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,
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
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