• 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:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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 ]
 
I wasn't selected to go to mars. This tiny ad got in ahead of me:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic