Hi,
I am using spring web flow 2.0 & hibernate.
I wish to have 3 dropdowns, - country of birth, nationality & address, obviously each presenting a list of countries, on a jsp page.
When the page just has one of the dropdowns (any one) , all works ok, for the relevant field, the country selected is saved.
However with all 3 on the page
- selecting a country in the first drop down leads to that value being saved for all 3 fields.
- selecting a country in the second or third dropdown does not lead to that value being saved.
Code:
<form:select path="countryBirth.codeID" style="width:170px" id="_countryBirth">
<form:options items="${countryList}" itemValue="codeID" itemLabel="codeDescription"/>
</form:select>
<form:select path="country.codeID" style="width:200px" id="_country">
<form:options items="${countryList}" itemValue="codeID" itemLabel="codeDescription"/>
</form:select>
<form:select path="nationality.codeID" style="width:200px" id="_nationality">
<form:options items="${countryList}" itemValue="codeID" itemLabel="codeDescription"/>
</form:select>
Any ideas?
Thanks in advance,
Kevin