• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 581
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!



Regards,
Ellen
[ June 27, 2006: Message edited by: Ellen Zhao ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic