File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Populate a SelectOneMenu and others   Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Populate a SelectOneMenu and others   " Watch "Populate a SelectOneMenu and others   " New topic
Author

Populate a SelectOneMenu and others

Vito Lobefaro
Greenhorn

Joined: Feb 01, 2010
Posts: 1
i, i'm here to ask to you something to my "web project"..

i'm italian so sorry for my english!

I'm using JSF and Hibernate for the database... i create POJO and DAO classes from database and do a .xhml page with the information that the user have to write like this:





now the user must select an item from a selectonemenu, a drop down list, and the items are the records of a database table.. For example the table of my region's cities. I don't want to write one by one the items, because this table change his records many times!
what i can do to have all the cities in this selectonemenu? someone have the code to have a list and where i have to write this code? in DAO class?

SECOND PROBLEM:





to explain i post this photo:


when the user click on the button "Aggiungi membro alla compagine", the strings that he write in the inputText have to be displayed in the table on the top of the image, and the inputText elements have to be ready for another input. This is not a page, this is a part of a bigger .xhtml and i need that the user do this operation in the same page..

Thanks a lot for your answers
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Populate a SelectOneMenu and others
 
Similar Threads
Icefaces AUTO SORT TABLE example
HOW TO REFRESH THE FULL PAGE USING JSF ICE FACES AND TO GET THE UPDATED RECORDS INTO PAGE
Column Width in ICEFACES
how to get id of many many list within ace:dialog and c:foreach
fields not getting updated.