Hi all.
I'm using Spring 2.5 with Spring MVC and annotations.
I have a controller with an @InitBinder method which I use for binding dates using a SimpleDateFormatter. This works great for form items, as these go through the binder.
My question is - is it possible for non-form items (Model Attributes) on the
jsp page to use the same binder to convert date formats? I don't want to use the <fmt> tag if possible, as I would like to be able to change the format throughout the whole app in one go if required (I've actually implemented the InitBinder as a global binder)
In other words, the dates on the page are view only. They are from a model object, but are not bound to a form, but I still want them formatted the same way as the dates which are bound and therefore use the InitBinder property editor for Date objects.
Thanks in advance for any info.