Yes - this would be a perfect time for a nested model - write a generic model that implements IModel<Date> and takes an IModel<Calendar> as its input.
See http://www.jeremythomerson.com/blog/2008/11/06/wicket-the-power-of-nested-models/ for assistance with the rest. -- Jeremy Thomerson http://www.wickettraining.com On Mon, Nov 24, 2008 at 3:08 PM, Igor Vaynberg <[EMAIL PROTECTED]>wrote: > write a model that converts to and from. > > -igor > > On Mon, Nov 24, 2008 at 12:30 PM, Eduardo Simioni > <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I'm trying to use the DateTimeField from the wicket-datetime project. But > I > > realized that it's stuck to java.util.Date, all my entities use > > java.util.Calendar to store dates. So the question is: Is there a clean > way > > to work with DateTimeField and java.util.Calendar "targets"? > > I tried to find something in the list archive but looks like everybody > uses > > java.util.Date, or I'm missing something silly. > > > > Thanks! > > > > Eduardo.* > > * > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
