Hello all,
I'm forwarding a message from JSF community member Paul Dijou with some
comments on the upcoming JSF 2.2 draft spec.
Brian Leathem
-------- Original Message --------
Subject: Pushing some issues before public review
Date: Tue, 13 Nov 2012 13:37:49 +0100
From: Paul Dijou <paul.dijou_at_gmail.com>
To: Brian Leathem <bleathem_at_gmail.com>
Hi Volunteers,
I read that JSF 2.2 spec was near Public review (I think...) and that
any last interesting points should be submitted right now, so here I go
with a few ones (sorry to try to add more when you are already quite
busy with multi-templating).
The most important one, for me, is about facets that are supposed to
have only one child according to the spec but Mojarra allows any number
of children in practice (see
http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-677). I like
Mojorra way the best but it would be good if the spec goes the same way
and particularly specify the name/class of the wrapper in case of
several children. Also, maybe adding a new method:
*UIComponent#getFacetChildren(String facetName): List<UIComponent>*
which would return a list of all children of the facet with name
"facetName", ignoring the wrapper. If the facet has only one child, the
result would be a list containing only that child of course.
Another one is about better support for native HTML code inside JSF
page. See
http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1115
for more details. I guess passthru elements could help that point but it
would be forcing people. I would really like to have a way to natively
parse HTML inside JSF code.
Last one, not major at all but would be good, is about supporting any
"type" and "rel" in "h:outputStylesheet", same for scripts. See
http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1116 for more
details.
Thanks for your time. Regards,
Paul.