• Post Reply Bookmark Topic Watch Topic
  • New Topic

Any simple way to render a data table horizontally? (Dynamic columns, fixed rows)  RSS feed

Ellen Zhao
Ranch Hand
Posts: 581
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear folks,

the <h ataTable> tag in jsf is extremely good at rendering rows dynamically, but I want to render a report table for a choice question. In my use case, the number of rows are fixed: first row for choice lables and the second row for corresponding votes for each choice. Like this:

The columns to render should be decided in run time, according to how many choice items a quesiton has. And I want to bind a result Map<String, Integer> to the tag....I could of course write my custom renderer or even component to render it, but is there exsiting renderer to do this or any simple way using existing features of standard jsf library to achieve this? Thank you very much for your hint in advance!

[ June 27, 2006: Message edited by: Ellen Zhao ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!