How do I insert a non breaking space character in JSF page
like I can in HTML using
?
Is there such a tag in JSF?
just to add to options: <h:outputText value="&nbsp;" escape="false"/>
worked
this will work
<h:outputText value=" " />
If your using the RichFaces library you can also use the tag rich:spacer which will add an "invisible" image with a given length and height. Usually much easier and prettier than to add tons of nbsp;.
Where you want your space to show you simply add:
<rich:spacer height="1" width="2" />
The easiest way is:
<h:outputText value=" " />
Not necessary to give 160 . 141 will also work. For the value field provide value="" .
Putting the HTML number directly did the trick for me: