Forcing Uppercase in Form Field
I have a requirement that a certain String property in one of my domain objects must always have only uppercase characters. Rather than using a regexp constraint like regexp("[A-Z]*", "uppercaseAlphabetic") I would prefer that lowercase letters be automatically converted to uppercase letters as they are typed.
In the past when I was using raw Swing (i.e. not Spring RCP), I handled this problem by deriving from JTextField and overriding createDefaultModel(), making that method return a model that forced uppercase in insertString(). It worked great.
For Spring RCP, I suppose I could reuse my JTextField and register it as the property editor for the property in question. However, I was wondering if this "force uppercase" feature is already implemented somewhere within Spring RCP. Is it?
"All your bean are belong to us" - Spring Framework's IOC Container