Hi Ganesh-
I'll take a look at this... that dev/null guy was on vacation ;-)
BTW - I did file a spec issue:
https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=552
Thanks, Roger.
Ganesh wrote:
Hi,
Here's the same message again as it received no reply, that /dev/null
guy has become busy again. Martin, would you consider bringing this
into jsr-314-open if on jsr-314-comments it doesn't receive an answer?
Best Regards,
Ganesh
3 more comments from Apache MyFaces development on the JSR 314 spec:
[1] In the spec 2.6.2.1 h:head and h:body are silently indroduced as the
JSF 2.0 way of rendering html head and body. It says >>The <h:head> and
<h:body> tags refer to the renderers HeadRenderer and BodyRenderer
respectively, described in Section 8.6 "Standard HTML RenderKit
Implementation".<<, but there the new renderers aren't mentioned at all.
Can you please insert a phrase or two on the usage of h:head and h:body?
[2] The jsdoc on javax.faces.response defines a behaviour for update
elements with the id javax.faces.ViewRoot. By testing with the RI I
found out that this behaviour is triggered if an AJAX requests triggers
a naviagtion rule that leads to a different page. It's a cool thing to
have a well defined behaviour in this case, but the spec doesn't define
it. It's just what Mojarra does. Can you please add a paragraph that
defines the circumstances under which the server has to respond with
javax.faces.ViewRoot?
[3] In the javax.faces.ViewRoot case Mojarra returns a complete document
with DOCTYPE, html, head and body. It is left to the Javascript
implementation to separate these and replace the head and body sections.
This is a tedious task involving a parser that deals with html comments,
Javascript comments and CDATA sections within the HTML page. The
Javascript code Mojarra brings for this is unsufficient and fails for
many cases. We are currently working on a parser. Things would be a lot
easier if the spec would force the server to return separate CDATA
blocks within javax.faces.ViewRoot for the head and the body tag and to
omit the html tag and the DOCROOT. This can't be too hard to implement,
because head and body are rendered by h:head and h:body. Can you please
define the format for javax.faces.ViewRoot to contain 2 CDATA sections,
1 optional with the head tag and 1 required with the body tag?
Best Regards,
Ganesh Jung