In JSF 2.2 the component tags (prefix "h:") support the new "role" attribute. The API docs describe the attribute as follows:
"Per the WAI-ARIA spec and its relationship to HTML5 (Section title ARIA Role Attriubute), every HTML element may have a "role" attribute whose value must be passed through unmodified on the element on which it is declared in the final rendered markup. The attribute, if specified, must have a value that is a string literal that is, or an EL Expression that evaluates to, a set of space-separated tokens representing the various WAI-ARIA roles that the element belongs to."
Support for this tag is particularly important in tables on web pages, to support accessibility requirements. A table used for formatting purposes (h:panelGrid in JSF) must have the following attribute setting so that screen readers will not interpret it as a data table:
Currently, JSF 2.2 in GlassFish 4 accepts this attribute and passes it through correctly. However, the JSF editor in NetBeans is still treating it as an invalid attribute in the development builds. This needs to be fixed in NB 7.3.1.
Thanks very much.
These are what I'm running on:
Product Version: NetBeans IDE Dev (Build 201304042355)
Java: 1.7.0_17; Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Thanks for reporting. I'm afraid that we missed deadline for JSF2.2 fixing so I'm reporting this issue against JSF's taglibraries metadata and we have to wait until they will fix it in some patch release. In other words targeting to NB7.4.
Ok I created JSF related issue with all components where is 'role' attribute missing:
Thanks very much for filing the issue with the JSF implementation. I had not realized that it was a problem with their namespace definition.
(In reply to comment #4)
> Thanks very much for filing the issue with the JSF implementation. I had not
> realized that it was a problem with their namespace definition.
No problem, you couldn't know that.
I attached patch to the JSF issue so I believe that it will be fixed in near JSF bundle and consequently in NetBeans 7.4.
Attached patch into the JSF issue. Now we must wait until it will be integrated by any JSF maintainer.
Fixed by JSF library update where was the patch applied.
Product Version: NetBeans IDE Dev (Build 201310290001)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)