Results 1 to 2 of 2

Thread: Listener on model attributes

  1. #1
    Join Date
    Nov 2010
    Posts
    6

    Default 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

  2. #2
    Join Date
    Nov 2010
    Posts
    6

    Default

    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..

Tags for this Thread

Posting Permissions

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