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

[jsr344-experts] passThroughAttributes

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

Hello everyone,

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

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

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

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

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

Kito D. Mann | @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 |
@jsfcentral
+1 203-998-0403

* Listen to the Enterprise Java Newscast: *
http://blogs.jsfcentral.com/JSFNewscast/
*
* JSFCentral Interviews Podcast:
http://www.jsfcentral.com/resources/jsfcentralpodcasts/
* Sign up for the JSFCentral Newsletter: http://oi.vresp.com/?fid=ac048d0e17