I have a RichInputText component in my JSF page, which has a binding to an attribute in an associated java bean. I want the leading and trailing spaces to be removed from this string, before saving it to database. How can this be done via managed bean?
myIt.setValue(myIt.getValue().trim())
if you want to replace the string in the RIT component.