Ernesto's got you on the right track. I'd recommend taking it a step further like described here:
http://www.jeremythomerson.com/blog/2008/11/06/wicket-the-power-of-nested-models/ Jeremy Thomerson http://www.wickettraining.com -- sent from a wireless device -----Original Message----- From: Ernesto Reinaldo Barreiro <reier...@gmail.com> Sent: Wednesday, March 04, 2009 9:43 AM To: users@wicket.apache.org Subject: Re: Uppercasing inputs Maybe: class MyUpperCaseModel extends WhatEverModel<String> { ............ public void setObject(String value) { if(value != null) { super.setValue(value.toUpperCase()); } else { super.setValue(value); } } } and use MyUpperCaseModel instead of WhatEverModel<String>. Ernesto On Wed, Mar 4, 2009 at 4:30 PM, Leszek Gawron <lgaw...@apache.org> wrote: > Hello, > > one of my customers has this weird requirement that all data should be > input/shown uppercase. I can easily add > > input { > text-transform: uppercase; > } > > to my css rules, but this does not change the fact that data written into > database will still be case sensitive. > > How can I create a behavior for TextField so that the dat is uppercased > before being written to the model? > > my regards > > -- > Leszek Gawron > > --------------------------------------------------------------------- > 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