tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Kemnade (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (TAP5-2011) Global overrides for date format / number format
Date Mon, 22 Aug 2016 06:48:23 GMT

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

Jochen Kemnade closed TAP5-2011.
--------------------------------
    Resolution: Incomplete

We assume this is no longer relevant and therefore close it.
If you still have this issue in a recent Tapestry version (such as 5.4.1 or newer), feel free
to provide the necessary information and reopen.

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

Mime
View raw message