he whole set of data,
>>> availalble (unselected) and associated (selected)
>>> System.out.println("SIZE " + collection.size() + " ");
>>>
>>>
>>> unselectedChoices.add((T) update.getModelObject());
>>>
uot;);
> >
> >
> > unselectedChoices.add((T) update.getModelObject());
> > System.out.println("SIZE UNSELECTED" + unselectedChoices.size() + " ");
> >
> > collection.addAll(unselectedChoices);
> > System.out.prin
quot; ");
>
> collection.addAll(unselectedChoices);
> System.out.println("SIZE AFTER ADDING selection" +
> collection.size() + "
> ");
>
>
>
>
}
}
}
--
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.
---
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
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 :
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
> update.getTarget().add(this);
>
> }
> }
>
>
> }
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/unselected-choic