• 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
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Need Help

 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi EveryBody,

Iam new to JSF and need help which is as follows.

We are developing an application where we have use JSF at UI and Iam getting data from database and
I want to show this data in the form of list and want to pass this dynamic list to create a dynamic checkbox.

user will make selection from this list. I need help how to iterate this list in jsf , which jsf tag should i use so that i can pass this dynamic list
to checkbox and dynamically checkbox creation will take place and user will be able to make selection from these checkbox.

Please assist me on this. :
 
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please try to read some tutorials before asking such a question.

You need to use h:selectOneMenu to get the data's and display it in UI.

Just look this post. it'll explain how to fetch the values for Combo Box dynamically, what you need to do is just put your DB code instead of simply adding values in ArrayList. Thats it.
 
Jasmine kaur
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for responding . well what ever you have told I have already done that and after that I posted question.

Thanks once again
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
can make use of <ui:repeat> to iterate data of a list.
 
Jasmine kaur
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for respodning let me try teh tag which you told me and I will update you for the same.

 
what if we put solar panels on top of the semi truck trailer? That could power this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic