webtier@glassfish.java.net

Re: [webtier] Why does JSF 2.0 facelets eat spaces the way it does?

From: <webtier_at_javadesktop.org>
Date: Thu, 29 Oct 2009 13:06:40 PDT

>That said, if conversion isn't necessary, one could simply do: #{'hello'} #{'world'}


I have a website using i18n base on outputtext, typical snapshot of xhtml:
<h:outputText value="#{msgs.indexP2_1}"/>
<a href="http://picasaweb.google.com">Google PicasaWeb</a>
<h:outputText value="#{msgs.indexP2_2}"/>
<a href="www.youtube.com">Youtube</a><h:outputText value="#{msgs.indexP2_3}"/>

During migration to JSF 2.0 - all text are broken (i.e. whitespaces eaten). From that point of view the space handling brakes the backward compatibility and it is necessary to perform code changes.
#{'hello'} #{'world'} could be a solution for some cases, but how resolve attribute support e.g.: <h:outputText escape="false"

Thank Jan
[Message sent by forum member 'javajama' (exilant_at_atlas.cz)]

http://forums.java.net/jive/thread.jspa?messageID=369862