Menu

multiline cells in display tag

Help
eugen
2007-03-29
2012-10-09
  • eugen

    eugen - 2007-03-29

    How I can create multiline cells using dispaly tag. For example:
    |---------------|---|---|
    | name1 |na |na |
    ----------------|me2|me3|
    | n4 | n5 | n6 | | |


    text1 t2 t3
    t4 t5 t6
    -------------------------
    text1 t2 t3
    ---------------
    t4 t5 t6
    -------------------------
    text1 t2 t3
    ---------------
    t4 t5 t6
    -------------------------
     
    • Ed Webb

      Ed Webb - 2007-03-29

      I'm almost certain you cannot create a header row like you want. DisplayTag doesn't AFAIK allow you to span columns or create multi row headers. To create the data rows you could use a TableDecorator but you would probably end up writing more code to format the table correctly than you would by using a JSTL loop and coding it into your JSP page directly (or into a tag file). Unless you really need the paging and export functions of DisplayTag you will probably be better off creating the table yourself.

      Ed!

       

Log in to post a comment.

MongoDB Logo MongoDB