-
Feb 22nd, 2011, 10:20 PM
#1
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.
-
Feb 23rd, 2011, 09:26 AM
#2
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