ddlmodel.getObject()?

   -Tom


On 20.11.2012, at 05:24, david.li <lxw_fi...@hotmail.com> 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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to