You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/10/31 16:09:53 UTC

DO NOT REPLY [Bug 37310] New: - [Validator] Search the locale 'hierarchy' of formsets for a Form

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37310>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37310

           Summary: [Validator] Search the locale 'hierarchy' of formsets
                    for a Form
           Product: Commons
           Version: Nightly Builds
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Validator
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: niallp@apache.org
                CC: wgehner@infonoia.com


Currently if a formset for a specific locale is specified, but a form is not 
found in that formset then Validator doesn't currently check less specific 
formsets.

For Example, given the following config...

<form-validation>
   <formset language="fr">
      <form name="myForm">
        ...
      </form>
      <form name="otherForm">
        ...
      </form>
   </formset>

   <formset language="fr" country="CA">
      <form name="otherForm">
        ...
      </form>
   </formset>
</form-validation>

... then calling ValidatorResources's getForm() method with a locale of 
Locale.CANADA_FRENCH and form name of "myForm" returns null - rather than 
returning the form named "myForm" defined in the <formset language="fr"> 
formset.

I found this after looking into the following question from Wolfgang Gehner...

"I have a question though. If I don't use the language parameter on the formset 
(which is what you suggested), as in language="fr", it will tell me that 
formset for locale "fr" is not found. Do you think I am doing something wrong?"

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org