Wicket - DropDownChoice + ChoiceRenderer - preselecting does not work

纵然是瞬间 提交于 2019-12-02 01:33:17

I've finally managed to find the problem.

I've realized that when I display the form, Wicket logs the following warning:

Model returned object ... which is not available in the list of selected objects.

Based on that error message I've found out that in order for the preselecting of default options to work, the Business Entities must override the equals method (see the corresponding JIRA ticket). At least in Wicket version 1.5.4, which I'm using.

Hope this helps others who will get stuck with the same problem!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!