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

[jsr344-experts] Re: passThroughAttributes

From: Edward Burns <edward.burns_at_oracle.com>
Date: Tue, 26 Mar 2013 20:29:52 -0700

>>>>> On Mon, 25 Mar 2013 17:44:36 -0400, Kito Mann <kito.mann_at_virtua.com> said:

KM> Hello everyone,
KM> I was just looking at using pass-through attributes to support WAI-ARIA,
KM> and I was wondering:

KM> * Shouldn't there be a disabled attribute for <f:passThroughAttribute> and
KM> <f:passThroughAttributes>?

KM> Also, I know it's too late for this one, but isn't <f:passThroughAttribute>
KM> awfully verbose? I'm just thinking about how much of a pain it will be to
KM> use this feature with apps that use JSF tags instead of the HTML5-friendly
KM> markup. For example, if I want to add a few parameters to a component
KM> without writing Java code, i'd have something like this:

KM> <h:inputText value="#{myBean.value}">
KM> <f:passThroughAttribute name="aria-required" value="true"/>
KM> <f:passThroughAttribute name="aria-invalid" value="true"/>
KM> <f:passThroughAttribute name="..." value="..."/>
KM> <f:passThroughAttribute name="..." value=".../>
KM> <f:passThroughAttribute name="..." value="..."/>
KM> <f:passThroughAttribute name="..." value="..."/>
KM> </h:inputText>

KM> That's an awful lot of markup for a few extra attributes.

At this point, we just look to tool autocomplete.

Ed

--