Results 1 to 8 of 8
Thread: DisplayTag and 508 Section Law
- 11-29-2010, 03:54 PM #1
Member
- Join Date
- Nov 2010
- Posts
- 5
- Rep Power
- 0
- 11-29-2010, 04:05 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,460
- Rep Power
- 16
Which display tag?
And have you written a JSP with it in and seen what you can do with it when compared to the 508 stuff?
Since the bulk of it is to do with providing alt text for pictures and graphical buttons, and layout (including colours) it shouldn't be too difficult to test it out.
- 11-29-2010, 04:14 PM #3
Member
- Join Date
- Nov 2010
- Posts
- 5
- Rep Power
- 0
No, If it only involves with Alt text for image and graphical button, it is not tough to test it out. For table, I am look at requirements of HTML table scope attribute. DisplayTag has the <display:column> tag with the headerScope which will set the html tag <th scope="col">, but the <display:column scope="row"> does not seem to generate one <th = scope="row">. Also, how is about tab traversing within the table?
I am reading the DisplayTag source now (TableTag.java and ColumnTag.java). What files actually generate the <td> and <th>?
Thanks for any hints and helps.
khv
- 11-29-2010, 04:17 PM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,460
- Rep Power
- 16
Generate the table and then compare the results.
I'd be surprised if you couldn't produce the correct output, since the bits of 508 I've just looked at do not seem particularly onerous. They look similar to the w3c accessibility stuff to me.
- 11-29-2010, 04:55 PM #5
Member
- Join Date
- Nov 2010
- Posts
- 5
- Rep Power
- 0
I am testing the example-twotables.jsp. I have modified the first table to see how DisplayTable generates the table.
1. the header for column has the scope="col" correctly, but for the scope='row' was not correctly generated <th scope='row'> for the row. Instead, DisplayTable generates <td scope='row'>Java Code:<display:table summary="this is summary one." name="sessionScope.two-test1" sort="list" pagesize="10" id="table1" export="true"> <display:caption>Table 1</display:caption> <display:column scope="row" headerScope="col" property="city" title="CITY" group="1" sortable="true" headerClass="sortable" /> <display:column headerScope="col" property="project" title="PROJECT" group="2" sortable="true" headerClass="sortable" /> <display:column headerScope="col" property="amount" title="HOURS" /> <display:column headerScope="col" property="task" title="TASK" /> </display:table>
2. <display:column> does not have html pass-through attribute for id, headers to use.
Khv
- 11-29-2010, 05:09 PM #6
Moderator
- Join Date
- Apr 2009
- Posts
- 10,460
- Rep Power
- 16
1. Isn't that correct? <td scope='row'> defines that cell as containing header data for that row. It doesn'tmake much sense to put that into the actual header row (which contains headers for the columns).
2. I'm not sure about this one I'm afraid.
- 11-29-2010, 05:14 PM #7
Member
- Join Date
- Nov 2010
- Posts
- 5
- Rep Power
- 0
yes, you can have one <th> as child node of <tr> to specify that that cell is the row header. I can use the <td headers="col_id"> as alternative approach. However, <display:column> does have attributes to generate unique id for <tr>.
Thanks.
Khv
- 11-29-2010, 05:32 PM #8
Member
- Join Date
- Nov 2010
- Posts
- 5
- Rep Power
- 0
This is a sample to with <th scope='row'> nested inside <tr>
XML Code:<html> <body> <table border="1"> <tr> <th></th> <th scope="col">Month</th> <th scope="col">Savings</th> </tr> <tr> <th scope="row">1</th> <td>January</td> <td>$100</td> </tr> <tr> <td scope="row">2</td> <td>February</td> <td>$80</td> </tr> </table> </body> </html>
Similar Threads
-
This absolute uri (http://displaytag.sf.net) cannot be resolved in either web.xml or
By santosh.dhulipala in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 10-21-2010, 08:20 AM -
Displaytag customization
By vivtops86 in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 08-18-2010, 06:53 AM -
Displaytag in jsp
By fenilpanchal in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 02-14-2010, 08:31 PM -
Getting displaytag examples to compile
By jadeite100 in forum Web FrameworksReplies: 0Last Post: 12-28-2009, 09:32 AM -
7 shortnesses of displayTag
By freezea in forum Java AppletsReplies: 0Last Post: 01-22-2009, 02:14 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks