1.

What Is Pallet Component In Apache-wicket?

Answer»

WICKET extension comes with a special “Palette” component, which render TWO select BOXES, and allow user to move ITEMS from one select box into another.

//Java

import org.apache.wicket.extensions.markup.html.form.palette.Palette;

 final Palette<Hosting> palette = new Palette<Hosting>("palette",

new ListModel<Hosting>(SELECTED),

new CollectionModel<Hosting>(listHosting),

renderer, 10, true);

//HTML

<span wicket:id="palette"></span>

Wicket extension comes with a special “Palette” component, which render two select boxes, and allow user to move items from one select box into another.

//Java

import org.apache.wicket.extensions.markup.html.form.palette.Palette;

 final Palette<Hosting> palette = new Palette<Hosting>("palette",

new ListModel<Hosting>(selected),

new CollectionModel<Hosting>(listHosting),

renderer, 10, true);

//HTML

<span wicket:id="palette"></span>



Discussion

No Comment Found