Hello i'm having a problem when I want to display some data.
I have a list of countries and each country contains a list of regions.
What I want to do after choosing the country. I want my 2nd list to take pays.regions
Below my form :
<form:form method="POST" modelAttribute="modelForm" action="${myAction}">
<label>Pays</label>
<form:select path="isoCode">
<form:options items="${pays}" itemValue="isocode" itemLabel="name"/>
</form:select>
<label>regions</label>
<form:select path="region>
<form:options items="valueSelected.regions" itemValue="region" itemLabel="name"/>
</form:select>
</form:form>
I want to put the value selected from pays in a variable and use it in select for regions.
Thank you in advance.
Regards,