Re: wicket extensions - Palette Problem
Ok, I think I got it. You should add to choice render an empty id and value expression, i.e. new ChoiceRenderer("", ""). Without any expression any choices is recognized as selected. Hi I'm using wicket extensions 1.4.17. I came across a problem with adding selection on Palette. ... .. add(form); List available = new ArrayList(); original.add("A"); original.add("B"); original.add("C"); original.add("D"); original.add("E"); Palette palette = new Palette("palette", new ListModel(available.subList(1,2)), new CollectionModel(available), new ChoiceRenderer(), 10, false); form.add(palette); selection list is sublist of available but this only displays A on the selected list and nothing on available list. Any help will be appreciated. Thanks!-- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-extensions-Palette-Problem-tp3489257p3489257.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket extensions - Palette Problem
The same using wicket 1.5 snapshot. I'm debugging the class searching for a solution. Hi I'm using wicket extensions 1.4.17. I came across a problem with adding selection on Palette. ... .. add(form); List available = new ArrayList(); original.add("A"); original.add("B"); original.add("C"); original.add("D"); original.add("E"); Palette palette = new Palette("palette", new ListModel(available.subList(1,2)), new CollectionModel(available), new ChoiceRenderer(), 10, false); form.add(palette); selection list is sublist of available but this only displays A on the selected list and nothing on available list. Any help will be appreciated. Thanks!-- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-extensions-Palette-Problem-tp3489257p3489257.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicket extensions - Palette Problem
Hi I'm using wicket extensions 1.4.17. I came across a problem with adding selection on Palette. ... .. add(form); List available = new ArrayList(); original.add("A"); original.add("B"); original.add("C"); original.add("D"); original.add("E"); Palette palette = new Palette("palette", new ListModel(available.subList(1,2)), new CollectionModel(available), new ChoiceRenderer(), 10, false); form.add(palette); selection list is sublist of available but this only displays A on the selected list and nothing on available list. Any help will be appreciated. Thanks!-- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-extensions-Palette-Problem-tp3489257p3489257.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org