The "field-metadata" tag should provide the "on" property value
---------------------------------------------------------------
Key: STS-629
URL: http://www.stripesframework.org/jira/browse/STS-629
Project: Stripes
Issue Type: Improvement
Components: Tag Library
Affects Versions: Release 1.5
Reporter: Mike McNally
Priority: Minor
The clever and useful "field-metadata" tag would be even better if it were to
include the "on" property from field validation metadata. The "on" property
value would make it possible for client-side code to figure out whether fields
marked "required" really are required in the actual context of the form.
A variation on this would be to provide a way to tell the tag what event should
be considered as the one for which validation will be performed. With that
change, the tag would internally determine whether the "required" property is
true or not. Thus my page would say something like
<s:field-metadata var='meta' event='save'>/* whatever */</s:field-metadata>
and the resulting block of metadata would only mark those fields "required"
which are so marked for the "save" event.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development