开发者

spring mvc annotation - dummy form variable

I have a form with two select boxes that are used to move value开发者_JS百科s from one box to another. I need to submit values only from second select box to my ModelAttribute. How do i prevent spring mvc from complaining about "unable to bind" on my first selectbox.


Are you populating the dummy select control using spring binding? If not, for example if you are using ReferenceData to populate it, you could use an html select tag and omit the name attribute, which would mean it would not be submitted with the form.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜