Spring Webflow DataBinding to immutable objects via a constructor?
Is there any way of using an immutable object as a model within a view-state in Spring webflow? I know Spring webflow generally tends towards setters for this kind of thing, but I was wondering if anyone knew of a custom DataBinder or WebDataBinder that could handle binding the data using a constructor? I'm also aware there's this (SPR-1488) JIRA task against the problem, which advocated direct field access. Do people advocate this way of doing things? To me it doesn't quite feel right. Thanks, Stuart I have put an example of how you can do this using Jackson's ObjectMapper (which besides JSON