Hi!
> I can set the display name by
>                        @Override
>                        public String getDisplayValue(Car car) {
>                                return car.getName();
>                        }
> I tried to set the value of the option by below function:
>                       @Override
>                        public String getIdValue(Car car, int index) {
>                                return String.valueOf(carList.get(index));
>                        }


You might want to getIdValue have some unique id. Database primary key
or something. But in general, yes that should do it.


**
Martin

>
>
> -----
> Developer
> Wicket
> Java
> JSP
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-choice-rendering-tp3333876p3337484.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to