I haven't looked closely at the field-metadata tag, but the Stripes
form/input tags in general will work across includes and tag file
invocations. The way they do this is by maintaining a tag-stack in
the request object. When a tag wishes to find it's parent it performs
both the usual JSP parent tag search and if that fails, falls back on
our own tag stack to find the logically (if not physically) enclosing
tag.
There's no reason I can think of that the field-metadata tag shouldn't
use this mechanism, but it may not currently.
-t
On Nov 17, 2008, at 6:22 PM, Aaron Porter 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.
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.
Aaron
Mike McNally wrote:
On a whim, I tried making a little tag in a toy application. The
point of the tag was to factor out a small but ugly blob of code
involving the field-metadata tag. Basically I wanted to package up
the boilerplate javascript I want to call.
Well the tag "worked" in that Resin found it and used it, but the
field-metadata tag was confused because it didn't know the action
bean. I didn't play with it much after that but my guess was that
the tag is processed kind-of like a jsp:include is processed - it's
like a separate page. Therefore, the contextual stripes:form object
is nowhere to be found.
For this particular situation is no big deal, but I'm wondering
what the story might be should it become attractive to package up
some common patterns in tags, when those patterns involve stuff
inside forms. I'm guessing that other form-related tags might get
kind-of nervous outside of forms too. Is there a commonly-used
trick to make that doable?
--
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
-------------------------------------------------------------------------
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
-------------------------------------------------------------------------
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