• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

populate dropdown list from table of database

 
sameera srimal
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can somebody to help me to
know, how can a drop down list to populate its items from table of database automatically (in page loading stage) in JSF page.

 
Akaine Harga
Ranch Hand
Posts: 99
Java MyEclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Change your link to commandLink pointing to a method in some backing bean. There you can call the current backing bean of the loaded page getting it from the FacesContext and fill it with any data you need. Example:

start page:
nav rules and bean mappings in faces config:
org.mypackage.MyController:

Hope this helps...
 
sameera srimal
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

ya thank for your assistance it help me to learn and to find the answer i expected
thanks again !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic