2009/5/10 Dan Allen <span dir="ltr"><<a href="mailto:dan.j.allen@gmail.com">dan.j.allen@gmail.com</a>></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"><<a href="mailto:clarity.training@gmail.com" target="_blank">clarity.training@gmail.com</a>></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"><<a href="mailto:norbert.truchsess@t-online.de" target="_blank">norbert.truchsess@t-online.de</a>></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>
<?xml version='1.0' encoding='utf-8'?><br>
</div><ui:composition xmlns:ui="<a href="http://java.sun.com/jsf/facelets" target="_blank">http://java.sun.com/jsf/facelets</a>"><br>
<div> xmlns:f="<a href="http://java.sun.com/jsf/core" target="_blank">http://java.sun.com/jsf/core</a>"<br>
xmlns:af="<a href="http://xmlns.oracle.com/adf/faces/rich" target="_blank">http://xmlns.oracle.com/adf/faces/rich</a>"><br>
</div> <f:view><br>
<af:document/><br>
</f:view><br>
</ui:composition></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't find it. IOW...<br>
<br><h:commandButton ... action="welcome"/><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's not an XHTML file, it'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'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'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'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'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'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't hesitate to resend a message if<br>
you feel that it did not reach my attention.<br>
</div></div></blockquote></div><br>