Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf 2 有没有办法让h:panelGrid可以访问?_Jsf 2_Accessibility - Fatal编程技术网

Jsf 2 有没有办法让h:panelGrid可以访问?

Jsf 2 有没有办法让h:panelGrid可以访问?,jsf-2,accessibility,Jsf 2,Accessibility,我使用的是JSF2.0,但我在使用panelGrid时遇到了可访问性问题 在本例中,我使用了两个嵌套的panelGrid: <h:panelGrid id="inq" columns="1" columnClasses="columnclass-noborders" > <h:panelGrid columns="2" columnClasses="columnclass-noborders columnclass-right-padding,

我使用的是JSF2.0,但我在使用panelGrid时遇到了可访问性问题

在本例中,我使用了两个嵌套的panelGrid:

<h:panelGrid id="inq" columns="1" 
    columnClasses="columnclass-noborders" >
<h:panelGrid  columns="2" 
    columnClasses="columnclass-noborders columnclass-right-padding, 
    columnclass-noborders"
    cellspacing="0" cellpadding="0">

网站

返回下面的错误

是否有办法按照WCAG 2.0 AA的要求获取panelGrid可访问设置id和标题

1.3适应性:创建可以以不同方式呈现的内容(例如更简单的布局),而不会丢失信息或结构

成功标准1.3.1信息和关系(A)

检查245:具有多行/列标题的数据表不使用id和标题属性来标识单元格。 修复:将id和headers属性添加到表格单元格,以便它们标识与标题相关的单元格

错误行61,第22列:

<table id="form:inq">
<tbody>
<tr>
<td class="columnclass-noborders"><table cellpadding="0" cells ...


在没有看到完整代码的情况下,我假设您使用第一个panelGrid作为标题行,第二个保存数据。上的表似乎可以部分访问。你可以从中得到一些想法。该链接使用:

<f:facet name="header">
 <h:outputText value="#{bundle.signInMessage}"/>
</f:facet>


它看起来像是控制
。您需要控制标题和id,如所述:

查看完整呈现的html,而不仅仅是错误所指向的代码片段将非常有用。