On Wed, Mar 4, 2009 at 6:29 PM, Jeremy Thomerson <jer...@wickettraining.com> wrote: > LOL! Nah - I would just change all the setters on every domain object to > be: > > public void setFoo(String foo) { > this.foo = foo == null ? null : foo.toUpperCase(); > } > > Or, maybe I'd use AOP and build an aspect that could automatically intercept > calls to com.mydomain setters that take a single string argument and do the > upper-casing there!
Instead of doing it on *all* single-string argument methods, you could annotate the parameters: public void setFoo(@Upcase String foo) { this.foo = foo; } --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org