Ajax multiple selects struts 2
Posted on 2010-03-31
I have several Ajax Selects in a form on a struts 2 page.
If the country is changed then the city select is repopulated using an Ajax call. This is working fine.
I have the same thing when the city is changed then the building list is repopulated. This also works fine.
My problem now is that when I change the Country, The city list is repopulated, but the building list is not. So the list of buildings is not relevant to the new list of cities(city selected by default). If I change the country, How can I reload the buildings based on what would be selected by default from the new city list. I basically need to chain these list repopulations.