jsr344-experts@javaserverfaces-spec-public.java.net

[jsr344-experts] Re: RenderKit concept and composite components

From: Kito Mann <kito.mann_at_virtua.com>
Date: Sat, 23 Jul 2011 18:57:53 -0400

+1
---
Kito D. Mann | twitter: kito99 | Author, JSF in Action
Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and consulting
http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info | twitter:
jsfcentral
+1 203-404-4848 x3
* Listen to the latest headlines in the JSF and Java EE newscast:
http://blogs.jsfcentral.com/roller/editorsdesk/category/JSF+and+Java+EE+Newscast
* Keep up with the aftermath of the Oracle/Sun merger:
http://www.mergerspeak.com
On Sat, Jul 23, 2011 at 3:37 PM, Leonardo Uribe <lu4242_at_gmail.com> wrote:
> Hi
>
> Thinking about JSF 2.2, I notice that composite components cannot be
> defined per renderkit, but normal component can have multiple
> renderkits. This in practice breaks renderkit initial concept, which
> is a nice abstraction.
>
> It would be nice to add something like this in .taglib.xml files:
>
> <facelet-taglib xmlns="http://java.sun.com/xml/ns/javaee"
>              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>              xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd"
>              version="2.0">
>
>    <namespace>http://my.custom.library.org/cooltags</namespace>
>
>  <composite-library-name>my.custom.default.library</composite-library-name>
>
>    <renderkit>
>          <render-kit-id>somecustomrenderkit</render-kit-id>
>
>  <composite-library-name>my.custom.specific.library.for.this.renderkit</composite-library-name>
>    </renderkit>
>
> It is easy to do and go "aligned" to renderkit concept. Does that
> sounds good? any suggestion? any chances to include it in JSF 2.2 ?. I
> can provide a patch for Mojarra if needed.
>
> I'll create an issue for this one, but first it could be good to
> discuss this idea.
>
> regards,
>
> Leonardo Uribe
>