webtier@glassfish.java.net

Re: [webtier] JSF 2.0: Spaces not Preserved before h:outputText values

From: Jim Driscoll <Jim.Driscoll_at_Sun.COM>
Date: Wed, 19 Aug 2009 23:42:54 -0700

On 8/19/09 7:41 PM, Jim Driscoll wrote:
>
> Incidentally, this also works:
>
> #{b.foo} #{b.foo}
>
> because outputText isn't required in the simple case anymore.

BTW - in the bug you filed, you mention that you can't do this, since in
your use, b.foo contains user submitted data. Actually, #{foo} and
<h:outputText value="#{foo}"/> have the same escaping, so that's not a
reason to avoid the simple case.

Thought that would be worth mentioning in the forum.

Jim