Re: Ill really apreciate the help to get the selected item of a DropDownChoice using Scala

2013-05-17 Thread Martin Grigorov
Hi Bruno, On Fri, May 17, 2013 at 6:12 AM, Bruno Moura brunormo...@gmail.com wrote: Hi Martin But the DDC doesn't have a constructor with PropertyModel[String](this, custName) only a property model with the Object/Pojo as I was using. String is an Object, no ? ;-) Sorry, I'm new in

Re: Ill really apreciate the help to get the selected item of a DropDownChoice using Scala

2013-05-17 Thread Bruno Moura
Martin, the DDC has already created with the sema object type in the constructor for PropertyModel, listCustomer, and ChoiceRenderer new DropDownChoice(customerSelection, new PropertyModel[Customer](customer, name), listCustomer, new ChoiceRenderer[Customer](name))* But I need only a piece of

Re: Ill really apreciate the help to get the selected item of a DropDownChoice using Scala

2013-05-17 Thread Martin Grigorov
The selected value is reachable thru: customer.getName On Fri, May 17, 2013 at 4:33 PM, Bruno Moura brunormo...@gmail.com wrote: Martin, the DDC has already created with the sema object type in the constructor for PropertyModel, listCustomer, and ChoiceRenderer new

Re: Ill really apreciate the help to get the selected item of a DropDownChoice using Scala

2013-05-16 Thread Bruno Moura
Hi Martin But the DDC doesn't have a constructor with PropertyModel[String](this, custName) only a property model with the Object/Pojo as I was using. Sorry, I'm new in the world of wicket and scala, and is difficult to find good examples around so I'm using this list a lot because I'm getting

Re: Ill really apreciate the help to get the selected item of a DropDownChoice using Scala

2013-05-16 Thread Maxim Solodovnik
You should have objects of same type in DropDownChoice, PropertyModel, List and ChoiceRenderer On Fri, May 17, 2013 at 10:12 AM, Bruno Moura brunormo...@gmail.com wrote: Hi Martin But the DDC doesn't have a constructor with PropertyModel[String](this, custName) only a property model with

Re: Ill really apreciate the help to get the selected item of a DropDownChoice using Scala

2013-05-15 Thread Martin Grigorov
Hi, On Wed, May 15, 2013 at 6:32 AM, Bruno Moura brunormo...@gmail.com wrote: Hi For some weeks I'm trying to implement a simple combobox, DDC, and I'm struggling with this. I asked for some help several times but unfortunately I didn't archive my goal because I'm failing sometimes to

Ill really apreciate the help to get the selected item of a DropDownChoice using Scala

2013-05-14 Thread Bruno Moura
Hi For some weeks I'm trying to implement a simple combobox, DDC, and I'm struggling with this. I asked for some help several times but unfortunately I didn't archive my goal because I'm failing sometimes to understand scala with wicket, I have a little background with them at the moment.

Re: Get the selected item in the DropDownChoice using Scala

2013-05-06 Thread Hans Lesmeister 2
Hi, you can pass a IModelCustomer to the constructor as well. This model will receive the currently selected Customer. - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Get-the-selected-item-in-the-DropDownChoice-using

Re: Get the selected item in the DropDownChoice using Scala

2013-05-06 Thread Martin Grigorov
: ddc.getModel() - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Get-the-selected-item-in-the-DropDownChoice-using-Scala-tp4658555p4658559.html Sent from the Users forum mailing list archive at Nabble.com

Get the selected item in the DropDownChoice using Scala

2013-05-05 Thread Bruno Moura
How can I get the selected item form a DropDownChoice inside an ListView? I implemented the chunky code bellow: val listCustomer: java.util.List[Customer] = customerDAO.listCustomers item.add(new DropDownChoice(customerSelection, listCustomer, new ChoiceRenderer[Customer](name))) In