Hi all
I am working whit primefaces, hibernate and JSF
i have a problem
i have two selectOneMenu, they load values from a list, the list is the result of a query with two columns (example: Select i.id,i.name From test i)
In the xhtml, in the first selectOneMenu load the list in the field [1], need to show the column 2
in the second selectOneMenu load the list in the field [0], need to show the column 1
i need that when select a value in the selectOneMenu 1, automatically the selectOneMenu 2 change
example
selectOneMenu1
selecteditems = list[1] ---- list = name1,name2,name3,name4,name5
selectOneMenu1
selectOneMenu2
selecteditems = list[0] ---- list = 1,2,3,4,5
selectOneMenu2
When in the selectOneMenu1 selected name3, the selectOneMenu2 change to id 3
Please help
Dinamic selectItems
-
- Information
-
Who is online
Users browsing this forum: No registered users and 30 guests