Doesn't your "current" have to be a subset of "available"?
On Wed, Mar 24, 2010 at 2:58 PM, Josh Chappelle <jchappe...@4redi.com> wrote: > 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org