The following issue has been updated: Updater: Christian Bjørnbak (mailto:[EMAIL PROTECTED]) Date: Wed, 1 Dec 2004 3:24 AM Comment: Here is the code. Changes: Attachment changed to patch.txt --------------------------------------------------------------------- For a full history of the issue, see:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1162?page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1162 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-1162 Summary: Make strutsvalidationxml and create multiple <formset>'s in validation.xml Type: Improvement Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: XDoclet Components: Apache Module Versions: 1.2.2 Assignee: xdoclet-devel (Use for new issues) Reporter: Christian Bjørnbak Created: Thu, 18 Nov 2004 11:44 PM Updated: Wed, 1 Dec 2004 3:24 AM Description: Struts supports localized validation by having multiple <formset>'s in validation.xml - one for each "known" locale and one fallback/default for "unknown" locales. E.g. validation.xml: ... <formset> ... </formset> <formset language="en" country="GB"> ... </formset> <formset language="da"> ... </formset> ... In the default <formset> you insert the default validation rules and then only overrides the changed rules in the various localized <formset>'s. In the above example that could be override the postalcode format in the british locale and the postal code and date formats in the danish locale. This is great for validation of localized input like dates and floats, but isn't supported by XDoclet that will only create the default <formset>... I was thinking of the following design: Adding a parameter to @struts.validator; locale. Containing a Java style locale string like "en_US". Then I'll extend validation_xml.xdt and StrutsValidatorTagsHandler to do the following: 1. Find all the validators without locale and create the default <formset>. (Almost the current behaviour). 2. Find all the locales used in all classes. 3. Foreach locale create a <formset> containing only the validator's different from the default. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel