spring-form:options tag with enum

前端 未结 3 1643
耶瑟儿~
耶瑟儿~ 2021-02-20 10:24

I\'m having troubles displaying a dropdown list with the proper values. I\'m using the , and

3条回答
  •  再見小時候
    2021-02-20 10:44

    You do not even need to use items attribute if you are using tag.
    The options tag:
    Renders a list of HTML 'option' tags. Sets 'selected' as appropriate based on bound value.
    References Spring form tld. So for your need I guess falling back to JSTL core with will suffice.

提交回复
热议问题