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 <[email protected]> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>