Menu

How to fill a table using a list of arrayList

Help
chemad
2006-09-15
2012-10-09
  • chemad

    chemad - 2006-09-15

    Hi all!

    I'm newby in displaytag and I'm trying to fill in a table using items from an arrylist of arrylists in which each arrylist has the contents of a row.

    When I tried it with a couple of arrayLists, the displaytag displayed the
    object memory content:

    [Ljava.lang.Object;@5842e3
    [Ljava.lang.Object;@8f474f

    I need to do it this way because I don't have a way to know the number of columns till execution time, and my program obtains data in an arrayList.

    Also, how can column headers be displayed??

    Does anyone know how to do this??

     
    • proudman

      proudman - 2006-11-10

      Can you post the code snippet for how to do this. -Thanks

       
    • fahad

      fahad - 2006-09-15

      I havent looked into dynamic column creation in display tag.
      AFAIK, u need to know the number of columns coming in the beans.

      define the parameter title for column header.

       

Log in to post a comment.