at the time of convertinput() models are not yet updated. so you shold call
month.getconvertinput() to get the input.

-igor


On 7/27/07, Stephane Boisson <[EMAIL PROTECTED]> wrote:
>
> Well. I tried using a PropertyModel for each DropDownChoice, but same
> results..
> Looks like the model doesn't get updated even if each DropDownChoice has a
> valid selection..
>
> I looked at the source of Model (Wicket 1.3), and it simply store the
> value
> as a Serializable attribute.. So I should work with Model too..
>
> Stéphane
>
> James Law said:
>
> > I think you want to change this:
> >
> > private IModel day = new Model();
> > private IModel month = new Model();
> > private IModel year = new Model();
> >
> > You probably want to use a PropertyModel, or a CompoundPropertyModel to
> > bind the widget values to a bean that holds the picked values....
> > I have never used the generic Model class, but from the javadoc it
> > appears an empty constructor means you are not setting the model to any
> > object at all...hence you get null when you ask for the model...
> >
> > --James
> >
>

Reply via email to