In the database and when i make java output the text in the getText() method, the text is with normal whitespaces but when the .xhtml is doing the output all whitespaces are transformed to i tried it without h:outputText and with escape false/true.
<h:outputText escape="false" value="#{itemHome.description.text}" />
Any suggestions?
Thanks
JSF/Facelets does not do that, but some browsers/plugins (Firebug “Inspect Element” for example will do, but not Firefox View Source!) will show that when those spaces are actually non-breaking spaces (U+00A0) instead of normal spaces (U+0020). The problem needs to be fixed on the DB side (or on the input validation/conversion side whenever it concerns user-controlled input).