Right, but in general that demonstrates how leaky this abstraction is. Again, I look forward to Max&#39;s response on this because really I&#39;m just getting this conversation started. He seems to have thought through all the ramifications quite extensively. I think the bigger issue is actually the CDATA, but it is really linked.<br>
<br>-Dan<br><br><div class="gmail_quote">On Fri, Dec 11, 2009 at 6:28 PM, Ken Paulsen <span dir="ltr">&lt;<a href="mailto:Ken.Paulsen@sun.com">Ken.Paulsen@sun.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I&#39;m sure this is already known by most of you, but a work-a-round is to wrap the outer-most content that you want sent to the browser in a &lt;ui:composition&gt; tag.  Not the cleanest solution, but it does the trick:<br>

<br>
&lt;?xml junk...&gt;<br>
<br>
..<br>
&lt;ui:composition&gt;<br>
   Real content here<br>
&lt;/ui:composition&gt;<br>
..<br>
<br>
+1 to making this configurable option.<br><font color="#888888">
<br>
Ken</font><div><div></div><div class="h5"><br>
<br>
Dan Allen wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Max (Oracle) brought up a critical point at JSF Summit (and earlier in private discussions). Facelets is passing through the XML declaration in a template to the browser. This is problematic for certain browsers, to the point that it can change the rendering behavior of the browser. There needs to be a way to suppress this. A stopgap solution is to introduce a context param. A more long term approach is to add an attribute to f:view that indicates whether the XML declaration should be sent to the client (you may want it for an atom feed for example).<br>

<br>
I&#39;ll let Andy chime in on Max&#39;s behalf for follow up, since he has some use cases he can cite and perhaps further suggestion.<br>
<br>
-Dan<br>
<br>
-- <br>
Dan Allen<br>
Senior Software Engineer, Red Hat | Author of Seam in Action<br>
Registered Linux User #231597<br>
<br>
<a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br>
<a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br>
<a href="http://www.google.com/profiles/dan.j.allen" target="_blank">http://www.google.com/profiles/dan.j.allen</a><br>
</blockquote>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br><br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br>
<a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br><a href="http://www.google.com/profiles/dan.j.allen">http://www.google.com/profiles/dan.j.allen</a><br>