Announcement Announcement Module
Collapse
No announcement yet.
Custom property editors and i18n Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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

    Comment

    Working...
    X