This content has been marked as final.
Show 2 replies
-
1. Re: automatically trim() all input fields?
thokuest Apr 10, 2010 6:10 PM (in response to jeanluc)We made very positiv experience with Entity Listeners.
-
2. Re: automatically trim() all input fields?
amitev Apr 10, 2010 6:27 PM (in response to jeanluc)I would suggest to simply create a custom converter and attach it to all string fields in faces-config.xml
<converter> <converter-for-class>java.lang.String</converter-for-class> <converter-class>your.Converter</converter-class> </converter>
And trim the string in the getAsObject() method.