You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Niall Pemberton (JIRA)" <ji...@apache.org> on 2006/07/19 15:22:26 UTC
[jira] Updated: (VALIDATOR-128) [validator] Ability to set a
default Locale on the ValidatorResources
[ http://issues.apache.org/jira/browse/VALIDATOR-128?page=all ]
Niall Pemberton updated VALIDATOR-128:
--------------------------------------
Component/s: Framework
> [validator] Ability to set a default Locale on the ValidatorResources
> ---------------------------------------------------------------------
>
> Key: VALIDATOR-128
> URL: http://issues.apache.org/jira/browse/VALIDATOR-128
> Project: Commons Validator
> Issue Type: Improvement
> Components: Framework
> Environment: Operating System: Windows 2000
> Platform: PC
> Reporter: Jian Jiang
> Priority: Minor
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org