How to populate data in to combo box which is dependent on the value of other combo box data ..... plz help me
Printable View
How to populate data in to combo box which is dependent on the value of other combo box data ..... plz help me
Pls describe what have you done so far, and where is the exact place where you need help
Hi fon
I am doing a project using struts2 frame work, I am using autocompleter combobox provided by dojo plugin struts2 frame work. I am using 2 combo box where second combo box data is depends on selection of first combo box data. How to populate the data into second combo box is my question???
so you want to choose from first one, and each time you select, an async call to server will be performed to obtain matching value for second combo?
or you will have all data on client after first call and you will perform all your work in script?
Retrieve all values by first combobox value ID into ArrayList.Then from action class, iterate each value from ArrayList and put it into a StringBuffer by using coma separated or any synax like:,- etc.Finally this String return to the response.From the response each value put it into an optionbox by using javascript.
Plz try to implement this...