[ http://jira.codehaus.org/browse/DISPL-519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_127730 ]
Kefah SEYED commented on DISPL-519: ----------------------------------- Hello, 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 [EMAIL PROTECTED] for more questions. Thank you for this great library. Kefah SEYED > Please provide the provision 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 cont > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: DISPL-519 > URL: http://jira.codehaus.org/browse/DISPL-519 > Project: DisplayTag > Issue Type: New Feature > Components: HTML Generation, Tag Library > Affects Versions: 1.1.1 > Reporter: phani chaganti > > 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 : [EMAIL PROTECTED], for any questions. > Thanks, > Phani Chaganti -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel