I am getting issue somthing h:outputText
and h:inputText
both are displaying values but they are collapse the multiple whitespaces into single white space
for that i tried with style="white-space:pre"
but it also not working
so i am adding
in between strings
String str="hi & nbsp jsf"
and
<h:inputtext value="#{bean.str}">
while displaying it shows in input text box with value "hi & nbsp ;jsf" not "hi jsf" So, what should i have to do so that that it will display without "& nbsp;"
actually i have put that space between & nbsp; because here it will replaceing with white space
I don't want <h:outputText>
with escape="false"
for displaying because at some place i need h:inputText
. In h:inputText
there is no option for escape attribute
any other permanent solution for white Space Issue