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

[jsr344-experts] Re: [1089-HTML5-data-*attributes] PROPOSAL

From: Frank Caputo <frank_at_frankcaputo.de>
Date: Sat, 23 Jun 2012 16:23:35 +0200

Hi,

Am 10.06.2012 um 15:56 schrieb Frank Caputo:

> Hi Phil,
>
> Am 07.06.2012 um 05:24 schrieb Phil Webb:
>
>> I do like the idea of not needing to revisit renderers to support passthough attributes, and it maps well with the information Ed sent earlier [1]. Having said that, there might be some complexities with existing code. For example, looking at PrimeFaces, in org.primefaces.component.inputtext.InputTextRenderer I noticed that no component is passed to startElement. With Mojarra, the com.sun.faces.renderkit.html_basic.MenuRenderer calls startElement several times with the same component (once for "select" and again for "option" and "optiongroup"). Not much can be done if the component is not passed, but the menu case is particularly interesting because I would expect passthough attributes and overrides to apply to "select" but not "option" or "optiongroup".
>
> I think the renderer should pass the correct child (UISelectItem(s)) to the ResponseWriter. Having this, we could embed f:passThroughAttributes inside the f:selectItem(s).
>
> Unfortunately there is no corresponding component for SelectItemGroup, so we can't passthrough attributes to the optiongroup tag.

Should we spec this behavior and add a component for SelectItemGroup?


Ciao Frank