commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16920] New: - Declaration of Locale (language/country) in validation.xml ignored
Date Mon, 10 Feb 2003 06:18:44 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16920>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16920

Declaration of Locale (language/country) in validation.xml ignored

           Summary: Declaration of Locale (language/country) in
                    validation.xml ignored
           Product: Commons
           Version: 1.1 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Validator
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: kisseleff@gmx.ch


As I tried to use the Validator-Plugin, I came across some really weird 
behaviors of the Validator. 
 I read about setting the language and country in the validation.xml-File under 
<formset>.
- First of all, when I tried to set another language/country than my Default-
Locale and I start Tomcat (4.0.3), I got a NullPointerException. It seems that 
in ValidatorResources in line 334 [ Form defaultForm = get(defaultLocale, 
formKey);] he get's NULL back for the "defaultForm". And so, in the loop on 
line 336 [for (Iterator defaultFields = defaultForm.getFields().iterator(); 
defaultFields.hasNext(); ) } he get's this NullPointerException.
- Furthermore, it seems, that this setting [<formset language="something" 
country="something" >} is completely ignored by the validator. For example, 
when I set the serverlocale on US, but in the validation.xml I set 
language=German, country=CH, then there's no NullPointerException (as German, 
CH is my Default Locale), but, what's most important, it validates accordingly 
to the US-Locale (-> ignoring the language/country in the validation.xml)

So, I'd like to know, whether this is a Bug (NullPointerException and ignoring 
the Localesettings in the validation.xml) or is deliberately implemented like 
that. 
And what's the excact use in setting the Locale in the validation.xml-File. I'd 
be glad if you could answer me as fast as possible and send me some useful 
Links on that topic.

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


Mime
View raw message