hrm, what version of wicket are you using? to me it looks like abstractsingleselectchoice.convertvalue() does convert id back to choice object.
-igor On 7/27/07, Stephane Boisson <[EMAIL PROTECTED]> wrote: > > Igor said: > > at the time of convertinput() models are not yet updated. so you shold > call > > month.getconvertinput() to get the input. > > I tried this, but I get the option id not the value.. > > Ex: The generated HTML for the year dropdown looks like: > <select wicket:id="year" name="birthday:year"> > <option value="0">1995</option> > <option value="1">1994</option> > <option value="2">1993</option> > (...) > > If '1993' is selected yearPicker.getConvertedInput() returns 2.. > How can I get 1993 without rewriting stuff from > DropDownChoice/AbstractSingleSelectChoice ? > > Isn't there a better way to combine model from a FormComponentPanel's > subcomponents? > Should I make it a nested form instead? > > Stéphane >
