I have an <h:inputText>
field in my JSF page and I registered an entity with the name having double whitespace in it.
Example:
Black Coffee
The problem is when the page is re-rendered and the program makes a comparison between the value in the text field and the value in the entity. When it's re-rendered, the double whitespace is turned into a singular whitespace.
Example before:
Black Coffee
After:
Black Coffee
Do someone have any idea in how to solve it? I read something about using the <pre>
tag but I found it useless to me since it seems to work only to <h:outputText>
.