jQuery in Action, 2nd edition
The moose likes JSF and the fly likes Any simple way to render a data table horizontally? (Dynamic columns, fixed rows) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Any simple way to render a data table horizontally? (Dynamic columns, fixed rows)" Watch "Any simple way to render a data table horizontally? (Dynamic columns, fixed rows)" New topic
Author

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

Ellen Zhao
Ranch Hand

Joined: Sep 17, 2002
Posts: 581
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!



Regards,
Ellen
[ June 27, 2006: Message edited by: Ellen Zhao ]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: Any simple way to render a data table horizontally? (Dynamic columns, fixed rows)
 
Similar Threads
awkwardly defined input XML
Dynamically generate jsf components
Help me to have a sortable table in my html profile!
Problem with HTML Tables
Dynamic Columns problem in datatable