First your select
tag does not have a name attribute.
Second when a form is submitted the controller only gets strings. Spring has to convert every parameter to the type you want. It has built-in converters for simple types like Integer
or Boolean
, but not for complex types, not to mention your own types.
So if the attribute refUniteOrganisParent
is an object and only represented by a single value (the option
value) you need to implement a converter that creates an instance based on this value:
public class StringToMyType implements Converter<String, MyType> { ...
And you need to register your Converter: http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/mvc.html#mvc-config-customize