the code like this:
List<String> selection = Arrays.asList("A", "B");
form.add(new ListView("lis", selection) {
@Override
protected void populateItem(ListItem item) {
List list;
if (item.getModelObject().equals("A")) {
list = Arrays.asList("a1", "a2");
} else {
list = Arrays.asList("b1", "b2");
}
DropDownChoice ddl = new DropDownChoice("ddltest", ddlmodel,
list);
item.add(ddl);
}
});
-----
david
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/how-to-get-the-listview-s-dropdownchoice-value-tp4654012.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]