Back Forum Reply New

Listener on model attributes

Hi,

What's the best practice in Spring 3 to check if a model attribute has changed after a spring:form submit?

Is there a @Controller method that I can write thats invoked before the binding takes place, in order to compare my model attribute values with values that have been sent by the form post?

Is there a way to look at historical values of the model object in the session?

Thanks

Raq

A gentle bump.

Would a method annotated with @InitBinder be the best place to perform checks on previous and new values of properties of my command object?

Appreciate any thoughts, or examples..
¥
Back Forum Reply New