I've posted your answer on my blog at
http://blog.sun.com/roller/page/edburns/20041214#the_b
asics_of_rendering_xhtml
Ed (JSR-252 spec-co-load)
Ed,
thanks for this. I'm flattered to be in your blog!
I'm new to jsf; just having a look with a view to using this on a forthcoming project. It looks excellent. I've been using the current 1.1_01 version.
I've been going through the supplied examples. Generally, I quite like dropping the pages I've produced into the w3c validator at: http://validator.w3.org/, which is where this came up. If I take a page with otherwise validates as xhtml transitional and add:
<h:inputText id="y" value="#{Bean001.y}" validator="#{Bean001.validate}" />
I get out:
<input id="helloForm:y" type="text" name="helloForm:y" value="">
This tag is not closed, and so the validator rejects the page.
I had a quick look at the jsf code drop on the java.net site and (although I haven't compiled it) that code does seem to close all the tags (method endElement in HtmlResponseWriter).
The only other, very minor, thing I've found the validator objecting to was not having 'type="XX"' attributes in <script> tags .
But, as I say, the whole thing looks excellent, and I apologise in advance if I've misunderstood something, as quite likely I have.
Graham