Menu

2 row headers

2004-12-01
2012-10-09
  • Winston Rast

    Winston Rast - 2004-12-01

    Is there a good way to implement a 2 row header with displaytag? We'd need to be able to sort by in both rows as well. I'm unable to find anything on this topic. Thanks for your ideas.

     
    • Kat Forum

      Kat Forum - 2005-01-28

      I need this feature.
      I need to generate headers to output like the following html:
      <html>

      <head></head>
      <body>
      <table border="1">
      <thead>
      <tr>
      <th rowspan="2">Id</th>
      <th colspan="2">Name</th>
      <TH rowspan="2">Department</TH>
      <th colspan="3">Salary</th>
      </tr>
      <tr>
      <th>First</th>
      <th>Last</th>
      <th>Base</th>
      <th>Bonus</th>
      <th>Other Perks</th>
      </tr>
      </thead>
      <tr>
      <td>1</td>
      <td>Fname</td>
      <td>LName</td>
      <td>QA</td>
      <td>$40,000</td>
      <td>$5,000</td>
      <td>$0.00</td>
      </tr>

      <table>
      </body>
      </html

       
      • Angela Stempfel

        Angela Stempfel - 2005-12-16

        has anyone found a solution for this? i could use this feature as well!

        Thanks

         
    • Paul H. Roubekas

      Could someone who knows the design tell me what the best approch would be. I will give you my changes when done.

       
    • casper

      casper - 2005-05-17

      We overrode the BaseExportView class so that we could remove the markup (not only in the headers but in the column data itself)....works great!!

       
    • Zulu

      Zulu - 2005-05-31

      Hi,

      Casper can you please help me out that what modifications you made to insert extra row below the table header in DisplayTag.

      And if possible than please gimme some sample code for demo.

      I will really appriciate your help. Waiting for your reply.

      Regards,

      Salman

       
    • Ivaylo Kalatchev

      Hi Winston,

      have you got any feedback on your question so far?
      I have the same problem...

      Cheerio,
      Ivaylo Kalatchev

       
      • Eu Gene

        Eu Gene - 2004-12-09

        I haven't had time to do so, but apparently the right way to get the dev's attention would be to create a new issue on their JIRA page.

         
    • Paul H. Roubekas

      I need this feature also. Any word on where is stands currently.

       
    • Christopher K Koenigsberg

      We have some displaytag tables where the headers have "<br>" embedded in their text. This wraps the header text inside the "th".

      Unfortunately when you do an export, the "th" also comes out in the header row cells of the CSV.

       

Log in to post a comment.

MongoDB Logo MongoDB