This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF multiple check box and single array list in backing bean

 
sheela nithy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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..)

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18020
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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
  • 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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic