Search code examples
wicketpalettewicketstuff

Wicket Palette - add values to left list


I have a question about Palette in Wicket, i would add values (on page loading) in the right list but i didn't find a solution. I can only add values to left list using the Model. So please help me. (here in the pic, i would that the list Selected contains values from the beginning)

Thanks


Solution

  • Palette has a constructor where you can pass two model objects: one for the items already selected and one for all the choices available.