Search code examples
oracle-adf

I want to trim the string obtained via RichInputText. How can that be done in the bean?


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?


Solution

  • myIt.setValue(myIt.getValue().trim())

    if you want to replace the string in the RIT component.