• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

JSF table

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 10
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 28410
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Saloon Keeper
Posts: 28410
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Evildoers! Eat my justice! And this tiny ad's justice too!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic