I noticed that the EventListener parameter for validating a form wasn't
being properly used, this has been fixed. (the default is still false, to
bypass validation)
On 8/2/06, Josh Long [EMAIL PROTECTED] wrote:
Yeah I was sort of wondering the same thing, and in particular, how do
I get validation messages to render via ajax -- that is, i wat the
form to go through the normal validation routine and I dont want to
enable client side validation. I actually kind of like the red stars
and custom decorators the validation classes afford you...
i remember in tacos there was an example of employing the validators
(ie, led red asterisks appeared via ajax), is this possible in
tapestry 4.1 without some weird kludge?
I read in the docs that the default is to disable validation when
using submitForm -- since most of the use cases would make incurring
the validation lifecycle cumbersome to the user. Thats the default,
which implies it can be toggled... can it, and if so, how? ;-)
Thanks,
Josh
On 8/2/06, Denis Souza [EMAIL PROTECTED] wrote:
Hi, I was looking at the new Tapestry 4.1 ajax features.
EventListener/ResponseBuilder are really nice! Besides the new
annotations I
noticed some components (such as DirectLink) already have the Tacos ajax
functionality built in which allows you to update a certain part of the
page
(updateComponents parameter), however I didn't find the same
functionality
for the forms and submit buttons.
I tried using an EventListener/ResponseBuilder combination (listening
for
onClick and onSubmit) to try and get the same result but whenever I
click on
a submit button the form is submitted the traditional way, the entire
page
is reloaded. I'm guessing this could be solved by replacing the submit
buttons with regular links and having the form submitted on the
EventListener, but it just doesn't feel right not to use submit buttons
where they are needed.
Is there a new way to do this (maybe using the annotations) or is the
ajax
form submit functionality just not implemented yet?
Cheers
Denis Souza
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Jesse Kuhnert
Tacos/Tapestry, team member/developer
Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.