Binding Map<Object,List<Object>> using th:field

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Binding Map<Object,List<Object>> using th:field

Alexela
In my ExampleForm.java I have this map :

Map myMap = new HashMap<User, List<Role>> ();
where
User Class has the fields: String name, String email
Role Class has the fields: String roleName

How can I bind the fields name, email, roleName to the relative th:field in thymleaf?

I have not problem when the map has String key and String value
like:
Map myMap = new HashMap<String, List<String>> ();

Thank in advance