webtier@glassfish.java.net

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

From: Ed Burns <Ed.Burns_at_Sun.COM>
Date: Thu, 20 Aug 2009 10:57:26 -0700

>>>>> On Thu, 20 Aug 2009 06:38:55 -0700 (PDT), webtier_at_javadesktop.org said:

JD> On 8/19/09 7:41 PM, Jim Driscoll wrote:
JD> [...]
JD> Actually, #{foo} and <h:outputText value="#{foo}"/> have the same escaping,
JD> so that's not a reason to avoid the simple case.

MH> Whoa! That is very much news to me. I had thought that #{foo} was
MH> strictly whatever #{foo} would have been in the JSP 2.1 expression
MH> language. Clearly, I was wrong (and I made a test case to confirm
MH> so). However, I can't quite figure out where in the JSF spec it says
MH> this should be the expected behavior. Do you know where in the JSF 2
MH> spec it says this? (I need to reread that section!)

This behavior is a byproduct of the way ResponseWriter is defined.
However, I think I need to add an assertion to cover this specific case
which should be added to section 10.3.1. I've fixed the spec and added
an entry to the ChangeLog [1].

Ed

[1] http://wiki.java.net/bin/view/Projects/Jsf2MR1ChangeLog


-- 
| ed.burns_at_sun.com  | office: 408 884 9519 OR x31640
| homepage:         | http://ridingthecrest.com/