Hi,

 

I'm having a problem that is about to drive me nuts. I have a Palette that
won't display the selected values. I am able to reproduce my problem with a
simple version so here it is:

 

                        List<String> current = new ArrayList<String>();

                        current.add("ABC");

                        List<String> available = new ArrayList<String>();

                        available.add("DEF");

                        available.add("123");

                        

                        ChoiceRenderer renderer = new ChoiceRenderer()

                        {

 

                                    @Override

                                    public Object getDisplayValue(Object
object)

                                    {

                                                return object.toString();

                                    }

 

                                    @Override

                                    public String getIdValue(Object object,
int index)

                                    {

                                                return object.toString();

                                    }

                                    

                        };

 

new Palette<String>("views", new Model((Serializable)current), new
Model((Serializable)available), renderer, 10, true);

 

When I add this Palette to a form it only displays "DEF" and "123" in the
available part. I can't get anything to show in the selected part.

 

Someone please help. 

 

Thanks,

 

Josh

Reply via email to