I still feel changing to uppercase in domain model gives you the flexibility of the changing the values in any layer of the application
taha On Thu, Mar 5, 2009 at 10:02 AM, Jeremy Thomerson <jer...@wickettraining.com> wrote: > Oh, actually, just for the record, I was kidding about that. That was my > facetious / sarcastic tone that unfortunately doesn't come through all that > well in email (although Igor picked it up). But, more power to you - there > are certainly plenty of options! > > -- > Jeremy Thomerson > http://www.wickettraining.com > > On Wed, Mar 4, 2009 at 10:30 PM, taha siddiqi <tawushaf...@gmail.com> wrote: > >> Hi >> >> I have to agree with Jeremy. I would change the domain model and in >> case i must do it in Wicket I will use I will try to configure a >> Listener for a general purpose uppercase behavior >> >> taha >> >> On Thu, Mar 5, 2009 at 7:26 AM, James Carman >> <jcar...@carmanconsulting.com> wrote: >> > 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 >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org