Re: how to get the listview's dropdownchoice value

2012-11-21 Thread david.li
Thanks for your help. Martin Grigorov-4 wrote > List > > ddlmodels = > List > > selection = Arrays.asList("A", "B"); > form.add(new ListView("lis", selection) { > > @Override > protected void populateItem(ListItem item) { > List list; > if

Re: how to get the listview's dropdownchoice value

2012-11-20 Thread Martin Grigorov
List ddlmodels = List 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

Re: how to get the listview's dropdownchoice value

2012-11-20 Thread david.li
you said need a separate ddlmodel for each DropDownChpice. How to implement it in ListView? Can you give me a sample? Thanks. Martin Grigorov-4 wrote > You need a separate ddlmodel for each DDC. > Currently you are passing the same backend to all DDCs and they override > its value. > > > On Tu

Re: how to get the listview's dropdownchoice value

2012-11-20 Thread Martin Grigorov
You need a separate ddlmodel for each DDC. Currently you are passing the same backend to all DDCs and they override its value. On Tue, Nov 20, 2012 at 10:19 AM, david.li wrote: > Through the ddlmodel.getObject() just get the value of the last > DropDownChoice,but I want to get the value of the

Re: how to get the listview's dropdownchoice value

2012-11-19 Thread Thomas Götz
ddlmodel.getObject()? -Tom On 20.11.2012, at 05:24, david.li wrote: > the code like this: > List selection = Arrays.asList("A", "B"); > form.add(new ListView("lis", selection) { > > @Override > protected void populateItem(ListItem item) { > List list; >

how to get the listview's dropdownchoice value

2012-11-19 Thread david.li
the code like this: List 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.a