Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.1.1
-
Fix Version/s: None
-
Component/s: HTML Generation, Tag Library
-
Labels:None
-
Application server:WebSphere 6.0.1
Description
Hi,
I am working for a US Federal project, and all HTML static and dynamic pages need to be 508 compliant (need to be readable for disabled persons).
Our J2EE application renders Dynamic web content, through WAS and here is the scenario:
Please provide the provision, or the way to provide the ability ASAP in
<displaytagel:column tag, the ability to set the "id" attribute in <TH> tag, and also the corresponding "headers" attribute in <TD> tag, so that when the <displaytagel:column> tag is rendered to HTML page, it will contain the above attributes.
i.e please provide ability to set some property/attributes like this >>
<displaytagel:column property="empNo" title="Employee Id"
sortable="true" headerClass="sortable" headerId="hdrEmpId" />
so that when it translates to HTML, it need to look like this>>
<th class="sortable" id="hdrEmpId">Emp Id</th>
and the corresponding generated <TD> looks like this>>
<td headers="hdrEmpId">10000000</td>
Please provide this capability ASAP and I need to make it compliant. Please feel free to contact me at my email : phanikumar_ch@hotmail.com, for any questions.
Thanks,
Phani Chaganti
I am working for a US Federal project, and all HTML static and dynamic pages need to be 508 compliant (need to be readable for disabled persons).
Our J2EE application renders Dynamic web content, through WAS and here is the scenario:
Please provide the provision, or the way to provide the ability ASAP in
<displaytagel:column tag, the ability to set the "id" attribute in <TH> tag, and also the corresponding "headers" attribute in <TD> tag, so that when the <displaytagel:column> tag is rendered to HTML page, it will contain the above attributes.
i.e please provide ability to set some property/attributes like this >>
<displaytagel:column property="empNo" title="Employee Id"
sortable="true" headerClass="sortable" headerId="hdrEmpId" />
so that when it translates to HTML, it need to look like this>>
<th class="sortable" id="hdrEmpId">Emp Id</th>
and the corresponding generated <TD> looks like this>>
<td headers="hdrEmpId">10000000</td>
Please provide this capability ASAP and I need to make it compliant. Please feel free to contact me at my email : phanikumar_ch@hotmail.com, for any questions.
Thanks,
Phani Chaganti
I work for french governement and I have the same need on attribute "id" for th and attribute headers for td.
I find an explanation here : http://www.ferg.org/section508/accessible_tables.html#contents_item_6.1
I have already patched the source code but I can't submit it in the svn repository.
I give you the smalle changes that I made in th source code. The code is already tested and I hope it is respecting displaytag architectur and concepts :
*** Adding in org.displaytag.tags.ColumnTag :
/**
* Id of the TH
*/
private String styleId;
public void setStyleId(String styleId) {
this.styleId = styleId;
this.headerAttributeMap.put(TagConstants.ATTRIBUTE_ID, styleId);
this.attributeMap.put(TagConstants.ATTRIBUTE_HEADERS, styleId);
}
in method toString() {
.append("styleId", this.styleId) //$NON-NLS-1$
}
*** Adding in org.displaytag.tags.el.ELColumnTag :
/**
* Id of the TH
*/
private String styleId;
public void setStyleId(String styleId) {
this.styleId = styleId;
}
in method evaluateExpressions():
if(styleId != null)
{
super.setStyleId(eval.evalString("styleId", styleId)); //$NON-NLS-1$
}
*** Adding in org.displaytag.util.TagConstants :
/**
* html attribute <code>headers</code>.
*/
public static final String ATTRIBUTE_HEADERS = "headers"; //$NON-NLS-1$
*** Adding in org.displaytag.tags.el.ELColumnTagBeanInfo
in method getPropertyDescriptors()
proplist.add(new PropertyDescriptor("styleId", //$NON-NLS-1$
ELColumnTag.class, null, "setStyleId")); //$NON-NLS-1$
*** Adding in org.displaytag.tags.ColumnTagBeanInfo
in method getPropertyDescriptors()
proplist.add(new PropertyDescriptor("styleId", //$NON-NLS-1$
ColumnTag.class, null, "setStyleId")); // map //$NON-NLS-1$
*** adding in displaytag.tld
in ColumnTag
<attribute>
<name>styleId</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.String</type>
<description>
id of the TH
</description>
</attribute>
*** adding in displaytag-el.tld
in ELColumnTag
<attribute>
<name>styleId</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.String</type>
<description>
id of the TH
</description>
</attribute>
I hope it help and it can be integrated in next version
You can contact me at seyed_kefah@yahoo.fr for more questions.
Thank you for this great library.
Kefah SEYED