Igor wrote:
> hrm, what version of wicket are you using?
1.3-SNAPSHOT
to me it looks like abstractsingleselectchoice.convertvalue() does convert
> id back to choice object.
>
You're right.. But it looks like this method is not called in my case..
I made my component work with a quick hack, but I am not very happy of it..
new DateTime( getPickerValue(yearPicker), getPickerValue(monthPicker),
getPickerValue(dayPicker), 12, 0, 0, 0 );
private int getPickerValue( DropDownChoice picker ) {
return (Integer) picker.getChoices().get( (Integer)
picker.getConvertedInput() );
}
Stéphane