Results 1 to 2 of 2

Thread: format annotations and model via EL

  1. #1
    Join Date
    Jul 2005
    Posts
    111

    Default format annotations and model via EL

    i have a model attribute that i want to invoke formatting on,
    but this model attribute isn't a "bound" field in a form.

    for instance, i may have a getDate() field on an element in the model,
    and i would call it out in a jsp like ${element.date}.

    i have annotated getDate with DateTimeFormat, have called out:
    <mvc:annotation-driven/> but the formatting doesn't seem to be taking place.

    would this only work on bound fields, or should this be working...?

    thanks,
    tony.

  2. #2
    Join Date
    Jul 2005
    Posts
    111

    Default

    i believe this post answered my question:

    http://stackoverflow.com/questions/3...spring-mvc-3-0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •