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
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
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
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
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;
>
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