ddlmodel.getObject()? -Tom
On 20.11.2012, at 05:24, david.li <[email protected]> wrote: > 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); > } > > }); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
