[ 
https://issues.apache.org/jira/browse/TAP5-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jochen Kemnade updated TAP5-2011:
---------------------------------
    Labels: bulk-close-candidate  (was: )

This issue affects an old version of Tapestry that is not actively developed 
anymore, and is therefore prone to be bulk-closed in the near future.

If the issue still persists with the most recent version of Tapestry (currently 
5.4.0, available from Maven Central), please update it as soon as possible and 
add '5.4.0') to the issue's affected versions.

> Global overrides for date format / number format
> ------------------------------------------------
>
>                 Key: TAP5-2011
>                 URL: https://issues.apache.org/jira/browse/TAP5-2011
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.3.3
>            Reporter: Lance
>            Priority: Minor
>              Labels: bulk-close-candidate
>
> It's currently not easy to override the locale specific date / number formats 
> provided by the JRE. It's also not easy to set a global default for date / 
> number formats (eg in beaneditor or beandisplay). For example, the default 
> edit date format is DateFormat.SHORT whereas the default display format is 
> DateFormat.MEDIUM.
> It would be nice if tapestry had overridable services for providing these, eg:
> public interface DateFormatProvider {
>       DateFormat getDefaultDisplayDateFormat();
>       DateFormat getDefaultEditDateFormat();
>       DateFormatSymbols getDateFormatSymbols();
> }
> public interface NumberFormatProvider {
>       <T> NumberFormat getDefaultDisplayNumberFormat(Class<T extends Number> 
> type);
>       <T> NumberFormat getDefaultEditNumberFormat(Class<T extends Number> 
> type);
>       DecimalFormatSymbols getDecimalFormatSymbols();
> }
> Related issues:
> http://tapestry.1045711.n5.nabble.com/Global-setting-for-date-format-td5716054.html
> http://tapestry.1045711.n5.nabble.com/tapestry-js-formatLocalizedNumber-td5716714.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to