Trying to do something complicated with ListMultipleChoice model

2010-04-10 Thread Ray Weidner
Hi, I'm pretty new to Wicket and trying to get a better understanding of how models work. That's probably why this is such a tricky problem for me. On my site, users are submitting a form for a new Issue to be created. One of the fields of this Issue is affectedParties; in the data model, this

Re: Trying to do something complicated with ListMultipleChoice model

2010-04-10 Thread Sven Meier
Hi, ListMultipleChoice puts all selected parties into the model object you're returning in #getObject(). Either you should return a copy of your collection in #getObject() or just do nothing in #setObject(). Your current call to #clear() is effectively clearing the new selection (i.e.

Re: Trying to do something complicated with ListMultipleChoice model

2010-04-10 Thread Ray Weidner
Hi Sven, Thanks, that did the trick. I thought that the Collection argument was being generated by the framework, but now I understand what's happening. On Sat, Apr 10, 2010 at 4:00 PM, Sven Meier s...@meiers.net wrote: Hi, ListMultipleChoice puts all selected parties into the model object