Creating Dynamic select boxes

Can we create dynamic select boxes which will change when the user selection changes. How many levels we can go about.

For example

we have one combo box named states--> depending upon the states selected the corresponding districts should be shown in the other combo box, and when the user selects a district it should show the corresponding villages or towns and further..

Can we do it without ajax concept. if yes how?

If we have to use ajax one level is easy how to go about two or three levels.

Thanks in advance.

[557 byte] By [Anil_kumara] at [2007-11-27 9:50:54]
# 1
Multiple selection is not possible in combo box. If u select a state from a combo box then using AJAX corresponding districts would display in second combo box. Upto three level it would be easier if u use AJAX.
Neetsa at 2007-7-13 0:19:54 > top of Java-index,Java Essentials,Java Programming...
# 2

Hi !

ya it is possible to change values of Combobox depending on the value changed in another combobox.

it is possible when you implement Model and by reference of that

model you can change values of that combobox such as.

model1.removeAllItems();

model1.addItemAt(location);etc

inspite of this if you need code help i will provide it to you.

abdul_kareema at 2007-7-13 0:19:54 > top of Java-index,Java Essentials,Java Programming...
# 3
Thanks for responding, What is a model, in which package it is in and how to go about it.and regarding ajax can you provide me the code for two levelsThanks in advance
Anil_kumara at 2007-7-13 0:19:54 > top of Java-index,Java Essentials,Java Programming...