Re: unselected choices of Palette contain duplicates ...

2013-02-19 Thread Francois Meillet
he whole set of data, >>> availalble (unselected) and associated (selected) >>> System.out.println("SIZE " + collection.size() + " "); >>> >>> >>> unselectedChoices.add((T) update.getModelObject()); >>>

Re: unselected choices of Palette contain duplicates ...

2013-02-19 Thread grazia
uot;); > > > > > > unselectedChoices.add((T) update.getModelObject()); > > System.out.println("SIZE UNSELECTED" + unselectedChoices.size() + " "); > > > > collection.addAll(unselectedChoices); > > System.out.prin

Re: unselected choices of Palette contain duplicates ...

2013-02-19 Thread Francois Meillet
quot; "); > > collection.addAll(unselectedChoices); > System.out.println("SIZE AFTER ADDING selection" + > collection.size() + " > "); > > > >

Re: unselected choices of Palette contain duplicates ...

2013-02-19 Thread grazia
} } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430p4656566.html Sent from the Users forum mailing list archive at Nabble.com. ---

Re: unselected choices of Palette contain duplicates ...

2013-02-17 Thread Francois Meillet
Why twice ? > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430p4656437.html > Sent from the Users forum mailing li

Re: unselected choices of Palette contain duplicates ...

2013-02-16 Thread Francois Meillet
In the onEvent method, update.getModelObject() is added to the choices collection. The collection is not a Set, but a List. So each time you add an item to choices, you create a new entry. François Meillet Formation Wicket - Développement Wicket Le 16 févr. 2013 à 16:56, grazia a écrit :

Re: unselected choices of Palette contain duplicates ...

2013-02-16 Thread grazia
View this message in context: http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430p4656434.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-m

Re: unselected choices of Palette contain duplicates ...

2013-02-16 Thread Francois Meillet
> update.getTarget().add(this); > > } > } > > > } > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/unselected-choic