Re: ListMultipleChoice and HashSet

2009-06-10 Thread Linda van der Pal
Thanks for the help Igor! I was sure I had already tried to add the friends = new HashSetUser(); line to my constructor and that it didn't work. Apparently I screwed up somehow, because it is working after all. Regards, Linda Linda van der Pal wrote: I've created a quickstart and attached it

Re: ListMultipleChoice and HashSet

2009-06-09 Thread Linda van der Pal
I've found where the problem is residing, but I'm still not quite sure what the problem is. So I've used the quickstart to make a small project that reproduces the bug. Can anyone tell me what the procedure is to make this into an actual quickstart that I can pass around? I can make some

Re: ListMultipleChoice and HashSet

2009-06-09 Thread Igor Vaynberg
generate an archetype with maven, cmd line is here wicket.apache.org/quickstart after you are done mvn clean zip the dir attach to a jira -igor On Tue, Jun 9, 2009 at 1:40 AM, Linda van der Pallvd...@heritageagenturen.nl wrote: I've found where the problem is residing, but I'm still not quite

Re: ListMultipleChoice and HashSet

2009-06-08 Thread Linda van der Pal
Well it's unlikely to be a bug in Wicket (not that I was expecting one). When I tried to make a quickstart, the quickstart didn't show the error. It worked as I expected in the first place. So now I'm off to hunt for the bug in my original code. Thanks for all the help! Linda. Igor Vaynberg

Re: ListMultipleChoice and HashSet

2009-06-06 Thread Johan Compagner
What does the converter of that component that is bound to the set create? It seems to me that that doesnt create a set object but only a user?? And then not a set of users is the argument but the user itself so bang you get that exception you have.. On 04/06/2009, Igor Vaynberg

Re: ListMultipleChoice and HashSet

2009-06-05 Thread Linda van der Pal
That is very strange, as this is the code in the domain model: public SetUser getFriends() { return friends; } public void setFriends(final SetUser friends) { this.friends = friends; } So I don't see why it would recognize the getter, but not the setter. Linda

Re: ListMultipleChoice and HashSet

2009-06-04 Thread Linda van der Pal
Igor Vaynberg wrote: need to see more of the stacktrace -igor This is the entire stacktrace that is shown: WicketMessage: Error calling method: public void nl.lunaris.bookdb.model.database.User.setFriends(java.util.Set) on object: User: Test Root cause:

ListMultipleChoice and HashSet

2009-06-03 Thread Linda van der Pal
I tried setting the model of a ListMultipleChoice to a HashSet (by using a CompoundPropertyModel and the id of the HashSet). The list of possible choices was an ArrayList. It shows my selected choices nicely. But I'm getting an error when I want to save the data. So I'm guessing the LMC

Re: ListMultipleChoice and HashSet

2009-06-03 Thread Igor Vaynberg
need to see more of the stacktrace -igor On Wed, Jun 3, 2009 at 6:45 AM, Linda van der Pal lvd...@heritageagenturen.nl wrote: I tried setting the model of a ListMultipleChoice to a HashSet (by using a CompoundPropertyModel and the id of the HashSet). The list of possible choices