Results 1 to 2 of 2

Thread: Custom property editors and i18n

  1. #1
    Join Date
    Jan 2006
    Posts
    13

    Default 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. #2
    Join Date
    Jul 2005
    Posts
    246

    Default

    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
  •