-
Jan 2nd, 2006, 12:48 AM
#1
Custom property editors and i18n
Is there a way to specify i18n aware property editors for web forms?
How are you solving this issue in your own projects?
Example: A custom date property editor for java.util.Date that uses different date formats depending on the locale of the user
-
Jan 2nd, 2006, 06:03 PM
#2
In the initBinder method where you register the binders for the request, you get passed the HttpServletRequest object. Given that you can get the Locale of the user with request.getLocale(), it should be perfectly possible to initialise the property editer with the Locale object, and then process accordingly.
Bob
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules