I added a dynamic selectonemenu to datatable when i select one value in on selectonemenu that must not be repeated in second selectonemenu like that so on .....
i tried this but the first selectone menu also getting the same value what i selected in secone one please help me guys i used session scope managed bean
Nicholas Jordan
Ranch Hand
Joined: Sep 17, 2006
Posts: 1282
posted
0
Please describe each of these terms:
selectonemenu
datatable
second selectonemenu
session scope
managed bean
satya nath
Greenhorn
Joined: Feb 27, 2007
Posts: 9
posted
0
selectonemenu means <h:selectonemenu> i mean select box
Datatable means in order to display data from database in table format we use datatable in JSf
Secondselectonemenu its also h:selectonemenu
Managed bean means backing bean which persorms all database related code/operations
Sessionscope means in faces-config.xml i kept backingbean scope as session bean
Please give the solution uyaar
Nicholas Jordan
Ranch Hand
Joined: Sep 17, 2006
Posts: 1282
posted
0
Do you have a valueChangeListener for the <h:selectonemenu> and <h:Secondselectonemenu> ?
Sounds like a ViewHandler issue: "The pluggablity mechanism for allowing implementations of or applications using the JavaServer Faces specification to provide their own handling of the activities in the Render Response and Restore View phases"
Thus: Datatable should be wrapped with a ViewHandler which should capture changes in the view.
I am not familiar with jsf so this is the best I can do. HTH