Hi Marcus

I read the Tap4.1 documentation and ultimately we'll move up to that
release. The project I am on now is simply to see how viable Tacos is to
use.

Even after reading the documentation, I still could not see (whether on 4.0
or 4.1) how to get the more detailed validation of Tacos forms to work.

The one way (with profiles) i imagine would involve writing a js profile for
every form and having the form know about every field in every component on
it that requires validation. That said, I'm still not sure how I would then
get the server side validation to work in a similar way to the Validators of
4.0.

The way I got around the problem in the end was changing the custom
Validators and Translators that we have, to declare their own methods
independently of the Tapestry JSON (I assume it's a JSON) that gets put on
the page. I wrote the js functions into the JSON originally because the
built in validators and translators of Tapestry (like Number and Min) did it
this way. As soon as the tacos validation.js showed up, the Tapesry JSON
disappears. Well, the whole JSON didn't disappear because the Required field
validator was still there. Anyway, having validation js methods that aren't
on the Tapestry JSON worked.

When the Ajax form arrived and took with it the built in Number and Min
validators, I went and made custom ones of those too just so that I could
have number and min validation. But this seemed like a very overkill way of
doing it. But because of the sheer number of components on the form that
required the number and min validation (along with my deadline) this was the
only option for me.

Still, if there is anyone who has an example of an Ajax form doing
validation of numbers, email addresses or min value fields I would very much
appreciate a link to it. I am very keen to learn more about this because the
framework seems to be very good, it's just the lack of examples that I am
struggling with.

Thanks again for your reply,
Kind regards,
Rachel





Marcus Schulte wrote:
> 
> I fear, I can't help a lot with your concrete problems. Nevertheless, two
> hints:
> 
> - Maybe the Tap 4.1 docs on the subject helps:
> http://tapestry.apache.org/tapestry4.1/javascript/index.html
> 
> - Did you consider updating to T 4.1.2? It's really an
> "almost-drop-in-replacement" for 4.0.x. And it's main topic was to pull
> over
> the best from Tacos and make all the Ajax stuff integrate smoothly with
> the
> synchronous-request-oriented parts. Unfortunately, the Tacos version
> for 4.1is not yet final, but we found the snapshot quite workable.
> 
> 
-- 
View this message in context: 
http://www.nabble.com/Mixing-AjaxForm-and-Form-tf4128054.html#a11770410
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to