This content has been marked as final.
Show 2 replies
-
1. Re: how to change the input value to upper case
xsalefter.xsalefter.yahoo.com Dec 11, 2009 4:10 PM (in response to thiagu.m)You can just add
stringValue.toUpperCase();
in your conttoller/backing bean/EntityHome persist/update method. After all, this is explain in Java SE docs as a natural String object capability.
-
2. Re: how to change the input value to upper case
kragoth Dec 14, 2009 1:22 AM (in response to thiagu.m)The text-transform only applies to how the data is 'DISPLAYED' to the user. It does not affect the data sent back to the server.
I'm doing exactly what you want to do with this small jQuery function.
function upperCaseAllInputs() { jQuery("input:not('.normalCase')[type='text']") .each(function() {this.value = this.value.toUpperCase();}); }
I just call this during the
onsubmit
of each page. (Getting it to work will be hard if you are using ajax but... see how you go.