Implementing search in JSF
My Jsp has 3 dropdowns as follows. One is Parent dropdown and second is corresponding child dropdown say "Child1" and other dropdown contains the values based the selcted value from thecorresponding to "Child1" dropdown. For every value in the "Child1 "drop down has some childs..
I am implementing the search childs the selected value of the third drop down.
Please help me in this, example code will be very helpful.
[437 byte] By [
paduria] at [2007-10-2 13:15:21]

Use a SelectOneMenu component to create the combo boxes
Use a Value Changed Listener to execute the logic necessary to find the children data. Use the onchange event attribute to automatically submit the form when the user chooses a value. Set the immediate attribute to true to aviod getting validation errors on the rest of the form inputs (if the exist).
Use the rendered attribute of the child combo boxes to hide them until they are ready to be displayed.
If your value change listener do 2 things: call whatever logic you need to get the data of the "next" combo box and make sure that whatever expression you are using for the rendered attributes of your child combo boxes is going to evaluate to true.