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/01/20 21:38:37 UTC

DO NOT REPLY [Bug 33184] New: - ability to set a default Locale on the ValidatorResources

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