History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: APF-736
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Matt Raible
Reporter: Nathan Anderson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse

make date and number formats i18n aware

Created: 23/Apr/07 08:30 PM   Updated: 06/Jun/07 12:33 PM
Component/s: Persistence Layer
Affects Version/s: 2.0-M5
Fix Version/s: 2.0-RC1


 Description  « Hide
We should include format data in the ApplicationResources.properties files as suggested here:

http://struts.apache.org/2.x/docs/how-to-format-dates-and-numbers.html

I'm not sure how to implement the same in other web frameworks.

 All   Comments   Change History   FishEye      Sort Order:
Matt Raible - 01/Jun/07 02:48 AM
I tried using the suggested format.date in ApplicationResources.properties it doesn't seem to work. I think creating a DateConverter (like suggested in EQX-50) is the best solution. I've done this and plan on checking it in.

The only problem caused by this is now the tests spit out a (seemingly harmless) error message: http://forums.opensymphony.com/message.jspa?messageID=118527#118527

Until we find a way to prevent this error, I'm going to add the following to log4j.xml in the Struts archetypes:

<logger name="com.opensymphony.xwork2.util.XWorkConverter">
        <level value="FATAL"/>
    </logger>

Matt Raible - 01/Jun/07 04:41 AM
Reopening because saving required dates don't work for some reason.

Matt Raible - 06/Jun/07 12:33 PM
Added APF-804 to track NPE that occurs in XWorkConverter.loadConversionProperties.