• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need Help  RSS feed

 
Jasmine kaur
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • 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. :
 
Rajkumar balakrishnan
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
fatih soylemez
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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
  • 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.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!