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

JSF multiple check box and single array list in backing bean

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,

I am new to JSF and this forum.. Please help me to find a solution for my requirement below..

I have requirement that, I have three panels, and each panel has a set of checkoxes.. User can select or deselect any checkbox according to their wish..

But all the values are retrieved from a single table where the label / description of the check box is saved when the user selects any checkbox.. (There is a unique ID to make it specific to each customer and this is not a problem now..)

Could someone help me how to accomplish this is backing bean and in JSF (because according to my understanding, when datatable is used we can only display each chkbox in row.. But I want 3 check box in a row and also they are distributed across 3 panels.. Means three panels each having some checkboxes 3 in a row..)

 
Saloon Keeper
Posts: 27752
196
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
You can embed a panelGrid in the dataTable like so:


That will give you a horizontal layout.
 
sheela nithy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply..

Could you please post the code along with the datatable..

I am totally confused with JSF..
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic