When I set required="true"
in a <h:inputText>
, it still allows blank spaces. I have been trying to modify the jsf-api.jar
but I could not understand how to generate new a JAR, so I tried to modify the isEmpty()
method from UIInput
class and compile it, open the jsf-api.jar
and replace it with the new one, but it did not work.
What I need is to do trim()
when the user writes in a <h:inputText>
to do not allow blank spaces. How can I achieve this?
If you want to download the jsf-api.jar
resource, you can do it, just read how to at: http://javaserverfaces.java.net/checkout.html.