how can selected item form dropdownchoice inside listview?
i implemented chunky code bellow:
val listcustomer: java.util.list[customer] = customerdao.listcustomers item.add(new dropdownchoice("customerselection", listcustomer, new choicerenderer[customer]("name")))
in case want name property displayed of model customer.
thanks
try this:
new dropdownchoice[customer](("customerselection", new model[customer], listcustomer, new choicerenderer[customer]("name"))) { protected override def wantonselectionchangednotifications: boolean = true protected override def onselectionchanged(newselection: customer) { super.onselectionchanged(newselection) } }
Comments
Post a Comment