Item.checkinDate=new Date() -igor
On Thu, Sep 9, 2010 at 10:52 AM, vp143 <vishal.po...@cipriati.co.uk> wrote: > > I tried that previously but then the field becomes NULL within the POJO > > I think this is what you mean: > > If i have: setDefaultModel(new CompoundPropertyModel(Item)); > where Item object contains checkinDate field > > I create the component: DateTimeField checkinDateField = new > DateTimeField("checkinDate", new Model(new Date())); > > This populates the Date and Time fields. > However, I do not want the Date field to be populate, and when submitting > the Item object checkinDate is NULL. I think this is because it has lost the > association with the CompoundPropertyModel. > > Many thanks > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Prepopulate-time-fields-in-DateTimeField-component-tp2533175p2533314.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org