Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF table  RSS feed

 
Rama Ch
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I want to display simple table using jsf components, but anywahere I search I am finding only datatable component.other than is there any possibilit to display a table.

Thanks in Advance
Rama
 
Tom mmeke
Greenhorn
Posts: 10
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on what you're trying to achieve.

displays a row for every entry in a SET or LIST.

arranges JSF components in a specified number of columns.
 
Tim Holloway
Bartender
Posts: 18713
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Rama!

I guess the big question is, if you want to display a table, and there's a table display control, why do you feel like you need some other control to display the table?
 
Rama Ch
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:Welcome to the JavaRanch, Rama!

I guess the big question is, if you want to display a table, and there's a table display control, why do you feel like you need some other control to display the table?



Hi Tim,

thank you for the reply.

Let me give my requirement. I have a list field called state. for specific field selectd in that state list i need to display country field.like
state : list box select value(if user select some NY,display city ,other wise dont display city field)
city: inputtext box.

Data table I fell something which is to display dynamic data from database. but here state data is not dynamic it is the value selected on the same page.

I have pretty much tried to explain my issue.

Please post your ideas.

Thanks
Rama
 
Tim Holloway
Bartender
Posts: 18713
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That came out a little garbled in translation, but I think I understood. More or less.

You'd still use a dataTable, but in order to get the city/state/country controls to cascade, you have to provide some extra support in your backing bean. If you want a dropdown list of states for a selected country, for example, the dataModel for the dataTable has to include a column that provides a SelectItem list for the country indicated on the same row.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!