You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by grazia <Gr...@gmail.com> on 2013/02/16 16:56:12 UTC

unselected choices of Palette contain duplicates ...

I have overriden the onEvent method of the Palette class in the attempt to
populate the palette (on the unleselected choices side) with data from
another component (an autocomplete) on the same page. THe only problem I
have is that the unselected choice side of the palette shows a duplicate of
the object I am trying to add. I cannot understand why twice ... ANy
suggestion ? 

	@Override
	public void onEvent(IEvent<?> event) {
				
		super.onEvent(event);
			
		if (event.getPayload() instanceof MyUpdate){
			MyUpdate update = (MyUpdate)event.getPayload();
			
			
			Collection choices= this.getChoices();
			choices.add(update.getModelObject());
			this.getChoices().retainAll(choices);
			
			update.getTarget().add(this);
			
		}
}	
			
			
		}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: unselected choices of Palette contain duplicates ...

Posted by Francois Meillet <fr...@gmail.com>.
The model is updated after a submit or an ajax event.
You need to choose and to implement it.


François Meillet
Formation Wicket - Développement Wicket





Le 19 févr. 2013 à 23:18, grazia <Gr...@gmail.com> a écrit :

> So, what do I do to update the palette's model with the changes before
> target.add(this) ?
> 
> On Tue, Feb 19, 2013 at 3:23 PM, Francois Meillet [via Apache Wicket] <
> ml-node+s1842946n4656572h24@n4.nabble.com> wrote:
> 
>> if you push the submit button before sending any event, you will see that
>> changes made to the model are saved correclty.
>> 
>> But in case you fire any event, you redisplay 'this' (the palette) before
>> the model is updated.
>> The state of this, in that case, is like a new original palette.
>> So far, only the javascript on the client side has been executed.
>> 
>> 
>> 
>> François Meillet
>> Formation Wicket - Développement Wicket
>> 
>> 
>> 
>> 
>> 
>> 
>> Le 19 févr. 2013 à 18:52, grazia <[hidden email]<http://user/SendEmail.jtp?type=node&node=4656572&i=0>>
>> a écrit :
>> 
>>> I sort of got it to work, but now when I move items from one side of the
>>> palette to the other and try to save it, the changes are not picked up
>> by
>>> the model and are not saved ...
>>> 
>>> public class MyPalette extends Palette {
>>> private List<T> unselectedChoices;
>>> public MyPalette(String id, IModel<List&lt;T>> model,
>>> IModel<List&lt;T>> choicesModel, IChoiceRenderer<T> choiceRenderer,
>>> int rows, boolean allowOrder) {
>>> super(id, model, choicesModel, choiceRenderer, rows, allowOrder);
>>> 
>>> setOutputMarkupId(true);
>>> unselectedChoices = new ArrayList<T>();
>>> 
>>> 
>>> }
>>> 
>>> @Override
>>> public void onEvent(IEvent<?> event) {
>>> 
>>> super.onEvent(event);
>>> 
>>> if (event.getPayload() instanceof MyAutoCompleteUpdate) {
>>> 
>>> MyAutoCompleteUpdate update = (MyAutoCompleteUpdate) event
>>> .getPayload();
>>> 
>>> Collection collection = this.getChoices(); // the whole set of data,
>>> availalble (unselected) and associated (selected)
>>> System.out.println("SIZE " + collection.size() + " ");
>>> 
>>> 
>>> unselectedChoices.add((T) update.getModelObject());
>>> System.out.println("SIZE UNSELECTED" + unselectedChoices.size() + " ");
>>> 
>>> collection.addAll(unselectedChoices);
>>> System.out.println("SIZE AFTER ADDING selection" + collection.size() + "
>>> ");
>>> 
>>> 
>>> 
>>> update.getTarget().add(this);
>>> 
>>> }
>>> 
>>> }
>>> 
>>> }
>>> 
>>> 
>>> 
>>> --
>>> 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.
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4656572&i=1>
>>> For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4656572&i=2>
>>> 
>> 
>> François Meillet
>> Formation Wicket - Développement Wicket
>> 
>> 
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>> 
>> http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430p4656572.html
>> To unsubscribe from unselected choices of Palette contain duplicates ..., click
>> here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4656430&code=R3JhemlhLlJ1c3NvTGFzc25lckBnbWFpbC5jb218NDY1NjQzMHwyMjY4MDg1NDM=>
>> .
>> NAML<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>> 
> 
> 
> 
> 
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430p4656577.html
> Sent from the Users forum mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 


Re: unselected choices of Palette contain duplicates ...

Posted by grazia <Gr...@gmail.com>.
So, what do I do to update the palette's model with the changes before
target.add(this) ?

On Tue, Feb 19, 2013 at 3:23 PM, Francois Meillet [via Apache Wicket] <
ml-node+s1842946n4656572h24@n4.nabble.com> wrote:

> if you push the submit button before sending any event, you will see that
> changes made to the model are saved correclty.
>
> But in case you fire any event, you redisplay 'this' (the palette) before
> the model is updated.
> The state of this, in that case, is like a new original palette.
> So far, only the javascript on the client side has been executed.
>
>
>
> François Meillet
> Formation Wicket - Développement Wicket
>
>
>
>
>
>
> Le 19 févr. 2013 à 18:52, grazia <[hidden email]<http://user/SendEmail.jtp?type=node&node=4656572&i=0>>
> a écrit :
>
> > I sort of got it to work, but now when I move items from one side of the
> > palette to the other and try to save it, the changes are not picked up
> by
> > the model and are not saved ...
> >
> > public class MyPalette extends Palette {
> > private List<T> unselectedChoices;
> > public MyPalette(String id, IModel<List&lt;T>> model,
> > IModel<List&lt;T>> choicesModel, IChoiceRenderer<T> choiceRenderer,
> > int rows, boolean allowOrder) {
> > super(id, model, choicesModel, choiceRenderer, rows, allowOrder);
> >
> > setOutputMarkupId(true);
> > unselectedChoices = new ArrayList<T>();
> >
> >
> > }
> >
> > @Override
> > public void onEvent(IEvent<?> event) {
> >
> > super.onEvent(event);
> >
> > if (event.getPayload() instanceof MyAutoCompleteUpdate) {
> >
> > MyAutoCompleteUpdate update = (MyAutoCompleteUpdate) event
> > .getPayload();
> >
> > Collection collection = this.getChoices(); // the whole set of data,
> > availalble (unselected) and associated (selected)
> > System.out.println("SIZE " + collection.size() + " ");
> >
> >
> > unselectedChoices.add((T) update.getModelObject());
> > System.out.println("SIZE UNSELECTED" + unselectedChoices.size() + " ");
> >
> > collection.addAll(unselectedChoices);
> > System.out.println("SIZE AFTER ADDING selection" + collection.size() + "
> > ");
> >
> >
> >
> > update.getTarget().add(this);
> >
> > }
> >
> > }
> >
> > }
> >
> >
> >
> > --
> > 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.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4656572&i=1>
> > For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4656572&i=2>
> >
>
>  François Meillet
> Formation Wicket - Développement Wicket
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430p4656572.html
>  To unsubscribe from unselected choices of Palette contain duplicates ..., click
> here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4656430&code=R3JhemlhLlJ1c3NvTGFzc25lckBnbWFpbC5jb218NDY1NjQzMHwyMjY4MDg1NDM=>
> .
> NAML<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: unselected choices of Palette contain duplicates ...

Posted by Francois Meillet <fr...@gmail.com>.
if you push the submit button before sending any event, you will see that changes made to the model are saved correclty.

But in case you fire any event, you redisplay 'this' (the palette) before the model is updated.
The state of this, in that case, is like a new original palette.
So far, only the javascript on the client side has been executed.



François Meillet
Formation Wicket - Développement Wicket






Le 19 févr. 2013 à 18:52, grazia <Gr...@gmail.com> a écrit :

> I sort of got it to work, but now when I move items from one side of the
> palette to the other and try to save it, the changes are not picked up by
> the model and are not saved ...
> 
> public class MyPalette extends Palette {
> private List<T> unselectedChoices;
> public MyPalette(String id, IModel<List&lt;T>> model,
> 			IModel<List&lt;T>> choicesModel, IChoiceRenderer<T> choiceRenderer,
> 			int rows, boolean allowOrder) {
> 		super(id, model, choicesModel, choiceRenderer, rows, allowOrder);
> 		
> 		setOutputMarkupId(true);
> 		unselectedChoices = new ArrayList<T>();
> 	
> 
> 	}
> 
> @Override
> 	public void onEvent(IEvent<?> event) {
> 
> 		super.onEvent(event);
> 
> 		if (event.getPayload() instanceof MyAutoCompleteUpdate) {
> 
> 			MyAutoCompleteUpdate update = (MyAutoCompleteUpdate) event
> 					.getPayload();
> 
> 			Collection collection = this.getChoices(); // the whole set of data,
> availalble (unselected) and associated (selected)
> 			 System.out.println("SIZE " + collection.size() + " ");
> 						
> 			
> 			unselectedChoices.add((T) update.getModelObject());
> 			System.out.println("SIZE UNSELECTED" + unselectedChoices.size() + " ");
> 			
> 			collection.addAll(unselectedChoices);
> 			System.out.println("SIZE AFTER ADDING selection" + collection.size() + "
> ");
> 			
> 		
> 
> 			update.getTarget().add(this);
> 
> 		}
> 
> 	}
> 
> }
> 
> 
> 
> --
> 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.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 


Re: unselected choices of Palette contain duplicates ...

Posted by grazia <Gr...@gmail.com>.
I sort of got it to work, but now when I move items from one side of the
palette to the other and try to save it, the changes are not picked up by
the model and are not saved ...

public class MyPalette extends Palette {
private List<T> unselectedChoices;
public MyPalette(String id, IModel<List&lt;T>> model,
			IModel<List&lt;T>> choicesModel, IChoiceRenderer<T> choiceRenderer,
			int rows, boolean allowOrder) {
		super(id, model, choicesModel, choiceRenderer, rows, allowOrder);
		
		setOutputMarkupId(true);
		unselectedChoices = new ArrayList<T>();
	

	}

@Override
	public void onEvent(IEvent<?> event) {

		super.onEvent(event);

		if (event.getPayload() instanceof MyAutoCompleteUpdate) {

			MyAutoCompleteUpdate update = (MyAutoCompleteUpdate) event
					.getPayload();

			Collection collection = this.getChoices(); // the whole set of data,
availalble (unselected) and associated (selected)
			 System.out.println("SIZE " + collection.size() + " ");
						
			
			unselectedChoices.add((T) update.getModelObject());
			System.out.println("SIZE UNSELECTED" + unselectedChoices.size() + " ");
			
			collection.addAll(unselectedChoices);
			System.out.println("SIZE AFTER ADDING selection" + collection.size() + "
");
			
		

			update.getTarget().add(this);

		}

	}

}



--
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.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: unselected choices of Palette contain duplicates ...

Posted by Francois Meillet <fr...@gmail.com>.
-Can you dump getChoices() after the line this.getChoices().retainAll(choices)
-also can you check your PaletteRenderer


François Meillet
Formation Wicket - Développement Wicket





Le 17 févr. 2013 à 03:38, grazia <Gr...@gmail.com> a écrit :

> I agree, but that would mean that I would be add it twice. 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 list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 


Re: unselected choices of Palette contain duplicates ...

Posted by grazia <Gr...@gmail.com>.
I agree, but that would mean that I would be add it twice. 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 list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: unselected choices of Palette contain duplicates ...

Posted by Francois Meillet <fr...@gmail.com>.
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 <Gr...@gmail.com> a écrit :

> 	public void onEvent(IEvent<?> event) {
> 				
> 		super.onEvent(event);
> 			
> 		if (event.getPayload() instanceof MyUpdate){
> 			MyUpdate update = (MyUpdate)event.getPayload();
> 			
> 			
> 			Collection choices= this.getChoices();
> 			choices.add(update.getModelObject());
> 			this.getChoices().retainAll(choices);
> 			
> 			update.getTarget().add(this);


Re: unselected choices of Palette contain duplicates ...

Posted by grazia <Gr...@gmail.com>.
To summarize that long code posting, on the page, there is an autocomplete,
and a form containing the palette. 
The autocomplete "sends" the choice selection to the palette ...  or is
there something else (the form ?) that receives the event first and sends it
to the palette ?



--
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-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: unselected choices of Palette contain duplicates ...

Posted by grazia <Gr...@gmail.com>.
Let me see if I can give you a succinct version. THank you for trying to
help me understand.

public class MyPage extends MyCustomizedWebPage {

    public MyPage () {

        add(new PageHeaderComponent("pageheader", "myPage"));

        add(new Label("title", PAGE_TITLE));


        add(new AjaxLazyLoadPanel("myAutoCompletePanel") {

            @Override
            public Component getLazyLoadComponent(String markupId) {
                return new MyPanel(markupId);
            }

            @Override
            public Component getLoadingComponent(String markupId) {
                // TODO Auto-generated method stub
                return new MyLoadingComponent(markupId);
            }



        });


        Form form = new Form("form");

        final FeedbackPanel feedbackPanel = new
FeedbackPanel("feedbackPanel");
        feedbackPanel.setOutputMarkupId(true);
        form.add(feedbackPanel);

        final MyPalette<MyObj> palette = new MyPalette<MyObj>("palette",
                myAssociated, myAvailable, getPaletteRenderer(),
                25, false) {
        };



        form.add(palette);


        form.add(new AjaxSubmitLink("saveButton") {

            @Override
            protected void onSubmit(AjaxRequestTarget target, Form<?> form)
{
                ......
            }

            @Override
            protected void onError(AjaxRequestTarget target, Form<?> form) {
    ......
            }
        });
        add(form);

    }

Now MyPanel class:

public class MyPanel extends Panel {

    (....)

    final AutoCompleteTextField<MyObj> autoComplete = new
AutoCompleteTextField<MyObj>(
            "code", codeModel, getAutocompleteRenderer()) {

        final List<MyObj> codeList = codeListModel.getObject();

        @Override
        protected Iterator<MyObj> getChoices(String input) {
           (...)

            return choices.iterator();
        }



        @Override
        public <C extends Object>
org.apache.wicket.util.convert.IConverter<C>
getConverter(java.lang.Class<C> type) {
            return new IConverter(){
              (....)
            }

            @Override
            public String convertToString(Object value, Locale locale) {
               (...)
            }

            };
        }

    };

    public MyPanel(String id) {
        super(id);

        autoComplete.add( new AjaxFormComponentUpdatingBehavior(
"onchange") {

            private static final long serialVersionUID = 1L;


                @Override
                protected void onUpdate(AjaxRequestTarget target) {

                    send(this.getComponent().getPage(), Broadcast.BREADTH,
new AutoCompleteUpdate(target,autoComplete.getConvertedInput()));
                }
            });

        add(autoComplete);

    }





}


On Sat, Feb 16, 2013 at 3:40 PM, Francois Meillet [via Apache Wicket] <
ml-node+s1842946n4656431h53@n4.nabble.com> wrote:

> Can you show up the code where you send the event ?
>
>
>
> François Meillet
> Formation Wicket - Développement Wicket
>
>
>
>
>
> Le 16 févr. 2013 à 16:56, grazia <[hidden email]<http://user/SendEmail.jtp?type=node&node=4656431&i=0>>
> a écrit :
>
> > I have overriden the onEvent method of the Palette class in the attempt
> to
> > populate the palette (on the unleselected choices side) with data from
> > another component (an autocomplete) on the same page. THe only problem I
> > have is that the unselected choice side of the palette shows a duplicate
> of
> > the object I am trying to add. I cannot understand why twice ... ANy
> > suggestion ?
> >
> > @Override
> > public void onEvent(IEvent<?> event) {
> >
> > super.onEvent(event);
> >
> > if (event.getPayload() instanceof MyUpdate){
> > MyUpdate update = (MyUpdate)event.getPayload();
> >
> >
> > Collection choices= this.getChoices();
> > choices.add(update.getModelObject());
> > this.getChoices().retainAll(choices);
> >
> > update.getTarget().add(this);
> >
> > }
> > }
> >
> >
> > }
> >
> >
> >
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4656431&i=1>
> > For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=4656431&i=2>
> >
>
>  François Meillet
> Formation Wicket - Développement Wicket
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430p4656431.html
>  To unsubscribe from unselected choices of Palette contain duplicates ..., click
> here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4656430&code=R3JhemlhLlJ1c3NvTGFzc25lckBnbWFpbC5jb218NDY1NjQzMHwyMjY4MDg1NDM=>
> .
> NAML<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: unselected choices of Palette contain duplicates ...

Posted by Francois Meillet <fr...@gmail.com>.
Can you show up the code where you send the event ?



François Meillet
Formation Wicket - Développement Wicket





Le 16 févr. 2013 à 16:56, grazia <Gr...@gmail.com> a écrit :

> I have overriden the onEvent method of the Palette class in the attempt to
> populate the palette (on the unleselected choices side) with data from
> another component (an autocomplete) on the same page. THe only problem I
> have is that the unselected choice side of the palette shows a duplicate of
> the object I am trying to add. I cannot understand why twice ... ANy
> suggestion ? 
> 
> 	@Override
> 	public void onEvent(IEvent<?> event) {
> 				
> 		super.onEvent(event);
> 			
> 		if (event.getPayload() instanceof MyUpdate){
> 			MyUpdate update = (MyUpdate)event.getPayload();
> 			
> 			
> 			Collection choices= this.getChoices();
> 			choices.add(update.getModelObject());
> 			this.getChoices().retainAll(choices);
> 			
> 			update.getTarget().add(this);
> 			
> 		}
> }	
> 			
> 			
> 		}
> 
> 
> 
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/unselected-choices-of-Palette-contain-duplicates-tp4656430.html
> Sent from the Users forum mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>