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

[jsr344-experts] RenderKit concept and composite components

From: Leonardo Uribe <lu4242_at_gmail.com>
Date: Sat, 23 Jul 2011 14:37:09 -0500

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