On Mon, Nov 17, 2008 at 5:22 PM, Aaron Porter <[EMAIL PROTECTED]> wrote:
> Mike,
> The field-metadata tag gets it's data from the list of fields that the
> <s:form> knows of up to that point. If it doesn't have an enclosing <s:form>
> it won't work at all.
>
> It sounds like you are using a tag file. Their operation is very different.
> I think what you are trying to do would work in an include file.
>
Yes, that was my surmise, and your confirmation is what I was looking
for. I could use includes, but those are sufficiently ugly that it's not
likely to look (to me) like a good way to factor out repeated small
patterns.
> BTW, how are you using the metadata tag? Are you using the
> stripes.jquery.validation.js file or did you roll your own? I haven't gotten
> much feedback at all.
>
I tried out the validation.js file just to see what it did, and I was quite
impressed. However for my purposes I'm more interested in some simpler
things. The code I've got now uses the "required" property to simply add a
class to the input fields. It also uses "maxlength" to set the maxlength
attribute and (optionally) the input field width. I may want to do more
aggressive client-side validation eventually. I have a lot of experience
doing that, so for me what I was most curious about was the form that the
"metadata" takes, and the way it can be used.
I've been doing some other simple experiments with the server-side
validation annotation stuff, and I'll probably type in a note about it once
I've had more experience thinking about it and using it. I'm sure other
people have done some neat stuff too because the framework makes it so
simple to introduce new twists on existing support.
--
Turtle, turtle, on the ground,
Pink and shiny, turn around.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users