Multiple Select in Spring 3.0 MVC

后端 未结 4 1005
太阳男子
太阳男子 2020-12-08 01:21

Ok so I\'ve been trying to accomplish multiple selects in Spring MVC for a while and have had no luck.

Basically what I have is a Skill class:

public         


        
4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-08 01:41

    tkeE2036: I wonder how you said it worked for you at all? The value of each option is "name", not "id". But then in the convertElement method you treat the received element (which is a name), as if it were the id. My guess is that if you tried to set the value of each option as "id", you would get an empty string as the value of each option, because you are using the wrong PropertyEditor.

提交回复
热议问题