In my controller I am setting a hashmap
@ModelAttribute("clientImpMap")
public Map<String,String> populateClientImpMap() throws MalformedURLException, IOException
{
Map<String,String> clientImpMap = new HashMap<String,String> ();
clientImpMap.put("1","High");
clientImpMap.put("2","Low");
return clientImpMap;
}
Now I want to populate this hashmap using Thymeleaf tags .How to do it? Using core Spring-mvc tags I can do this
<td>Client Importance :</td>
<td><form:select path="personBean.clientImpRef">
<form:option value="NONE" label="--- Select ---" />
<form:options items="${clientImpMap}" />
</form:select></td>
<td><form:errors path="personBean.clientImpRef" cssClass="error" /></td>
</tr>
What is the equivalent of this in thymeleaf?