Results 1 to 8 of 8
  1. #1
    khv
    khv is offline Member
    Join Date
    Nov 2010
    Posts
    5
    Rep Power
    0

    Question DisplayTag and 508 Section Law

    Does anyone know if DisplayTag comply with 508 Section Law (web accessibility)

    Khv

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,014
    Rep Power
    20

    Default

    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.

  3. #3
    khv
    khv is offline Member
    Join Date
    Nov 2010
    Posts
    5
    Rep Power
    0

    Default

    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

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,014
    Rep Power
    20

    Default

    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.

  5. #5
    khv
    khv is offline Member
    Join Date
    Nov 2010
    Posts
    5
    Rep Power
    0

    Default

    I am testing the example-twotables.jsp. I have modified the first table to see how DisplayTable generates the table.

    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>
    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'>

    2. <display:column> does not have html pass-through attribute for id, headers to use.

    Khv

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,014
    Rep Power
    20

    Default

    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.

  7. #7
    khv
    khv is offline Member
    Join Date
    Nov 2010
    Posts
    5
    Rep Power
    0

    Default

    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

  8. #8
    khv
    khv is offline Member
    Join Date
    Nov 2010
    Posts
    5
    Rep Power
    0

    Default

    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

  1. This absolute uri (http://displaytag.sf.net) cannot be resolved in either web.xml or
    By santosh.dhulipala in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 10-21-2010, 08:20 AM
  2. Displaytag customization
    By vivtops86 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 08-18-2010, 06:53 AM
  3. Displaytag in jsp
    By fenilpanchal in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 02-14-2010, 08:31 PM
  4. Getting displaytag examples to compile
    By jadeite100 in forum Web Frameworks
    Replies: 0
    Last Post: 12-28-2009, 09:32 AM
  5. 7 shortnesses of displayTag
    By freezea in forum Java Applets
    Replies: 0
    Last Post: 01-22-2009, 02:14 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •