webtier@glassfish.java.net

Re: JSF issue about space

From: Ed Burns <edward.burns_at_oracle.com>
Date: Tue, 27 Sep 2011 00:20:12 -0400

Try putting &nbsp; in there. You have to turn off escaping.
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
forums_at_java.net wrote:
I am a green bird in JSF, now I was puzzled by the text of it.
when I assign the value of the outputText with some spaces, the result shown
in IE has only one space.
ex:
the code is like <h:outputText id="name" value="aa     bbb"
></h:outputText>
the result text shown in IE is "aa bbb"
can anyone tell me why the spaces disappear without trace?
--
[Message sent by forum member 'PhoenixCA']
View Post: http://forums.java.net/node/847353