2009/5/10 Dan Allen <span dir="ltr">&lt;<a href="mailto:dan.j.allen@gmail.com">dan.j.allen@gmail.com</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><div class="gmail_quote"><div class="im">On Sat, May 9, 2009 at 4:00 PM, David Geary <span dir="ltr">&lt;<a href="mailto:clarity.training@gmail.com" target="_blank">clarity.training@gmail.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;">
2009/5/7 Norbert Truchsess <span dir="ltr">&lt;<a href="mailto:norbert.truchsess@t-online.de" target="_blank">norbert.truchsess@t-online.de</a>&gt;</span><br><div class="gmail_quote"><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


you can ommit the xml-declaration being passed through by using<br>
ui:composition:<br>
<div><br>
&lt;?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?&gt;<br>
</div>&lt;ui:composition xmlns:ui=&quot;<a href="http://java.sun.com/jsf/facelets" target="_blank">http://java.sun.com/jsf/facelets</a>&quot;&gt;<br>
<div>     xmlns:f=&quot;<a href="http://java.sun.com/jsf/core" target="_blank">http://java.sun.com/jsf/core</a>&quot;<br>
     xmlns:af=&quot;<a href="http://xmlns.oracle.com/adf/faces/rich" target="_blank">http://xmlns.oracle.com/adf/faces/rich</a>&quot;&gt;<br>
</div>  &lt;f:view&gt;<br>
    &lt;af:document/&gt;<br>
  &lt;/f:view&gt;<br>
&lt;/ui:composition&gt;</blockquote></div><div><br>Yes, and this should be a recommended practice, should it not? <br><br>However, the preceeding fragment is XML, not XHTML. If you have a view implemented as a composition, and you reference it as an action of a button or link, the corresponding file must have a .xhtml extension, or the navigation handler won&#39;t find it. IOW...<br>


<br>&lt;h:commandButton ... action=&quot;welcome&quot;/&gt;<br><br>...means the navigation handler will look for welcome.xhtml. If you name the file welcome.xml, you get an error message at runtime. But if welcome.xhtml uses a composition, like the preceeding code fragment, it&#39;s not an XHTML file, it&#39;s XML. Ugh.<br>


<br>Should the navigation handler also look for welcome.xml, or is that too naiive of a fix? </div></div></blockquote></div><div><br>Why don&#39;t you just make the javax.faces.DEFAULT_SUFFIX .xml?</div></div></blockquote>
<div><br>I thought about that, but it begs the question: why is the default suffix .xhtml to begin with? Shouldn&#39;t it really be XML?<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div> I suppose you want to have a gradual migration.</div></div></blockquote><div><br>Nope, I just want compelling examples for Core JSF. :)<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div> In that case, why can&#39;t JSF support multiple extensions, searched in priority order. I guess that is something an impl could provide (since migrations are something that you might look to a vendor to help you solve). The spec should assume you are using a single type (I guess).</div>
</div></blockquote><div><br>Sounds like a good idea to support multiple extensions. Why should the spec assume a single type--what&#39;s the advantage to that over multiple types?<br><br>Thanks,<br><br><br>david<br></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div><br><font color="#888888">
<br>-Dan </font></div></div><div><div></div><div class="h5"><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br><br><a href="http://mojavelinux.com" target="_blank">http://mojavelinuxcom</a><br>
<a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br>
<a href="http://in.relation.to/Bloggers/Dan" target="_blank">http://in.relation.to/Bloggers/Dan</a><br><br>NOTE: While I make a strong effort to keep up with my email on a daily<br>basis, personal or other work matters can sometimes keep me away<br>

from my email. If you contact me, but don&#39;t hear back for more than a week,<br>it is very likely that I am excessively backlogged or the message was<br>caught in the spam filters.  Please don&#39;t hesitate to resend a message if<br>

you feel that it did not reach my attention.<br>
</div></div></blockquote></div><br>