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 33184] New: - ability to set a default Locale on the ValidatorResources
Date Thu, 20 Jan 2005 20:38:37 GMT
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=33184>.
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=33184

           Summary: ability to set a default Locale on the
                    ValidatorResources
           Product: Commons
           Version: unspecified
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Validator
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: jackie.jiang@equifax.com


ValidatorResources's getForm(() method will fall back to its static 
field 'defaultLocale' when no Locale information is specified. This 
defaultLocale is essentially Locale.getDefault() call. In our app, we need to 
support two business cases where in one we want en_US as the default but in the 
other we want en_UK as the default. We want to be able to set the default 
locale on the ValidatorResources created for these two business cases. If there 
is a getDefaultLocale() method on the ValidatorResources that can return the 
static default Locale object only when the instance default object is not set. 
Then existing behavior will be kept where the client is also given a chance to 
set the default as needed.

-- 
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


Mime
View raw message