2 Replies Latest reply on Apr 10, 2010 6:27 PM by Adrian Mitev

    automatically trim() all input fields?

    Jean Luc Apprentice

      Is there an elegant way (perhaps an interceptor?) to automatically trim the spaces from any user-input String fields in forms?


      Since the form fields are bound to entities which are then saved, there isn't an obvious point in which to trim all String attributes. Since this is a UI concern, I'd like to keep this trimming out of the entities themselves.


      Thank you,
      -jl