You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ray Weidner <ra...@gmail.com> on 2010/04/19 16:52:57 UTC

Date components

Hi All,

Does anyone have any good suggestions for date/time entry components?  Does
Wicket offer a standard solution for this common case?

Thanks,
Ray Weidner

Re: Date components

Posted by Ray Weidner <ra...@gmail.com>.
Thanks, I'll give that one a try.

On Mon, Apr 19, 2010 at 10:59 AM, moèz ben rhouma
<be...@gmail.com>wrote:

> You just add the following code to your java page:
>
> *add(dateTimeField = new DateTimeField("dateEnvoi", new PropertyModel(this,
> "date")) {});*
>
> Which dateEnvoi defined in the markup file (the key of the component).
> And date defined in java like :
> private Date date = new Date();
>
> 2010/4/19 Ray Weidner <ra...@gmail.com>
>
> > Hi All,
> >
> > Does anyone have any good suggestions for date/time entry components?
>  Does
> > Wicket offer a standard solution for this common case?
> >
> > Thanks,
> > Ray Weidner
> >
>

Re: Date components

Posted by moèz ben rhouma <be...@gmail.com>.
You just add the following code to your java page:

*add(dateTimeField = new DateTimeField("dateEnvoi", new PropertyModel(this,
"date")) {});*

Which dateEnvoi defined in the markup file (the key of the component).
And date defined in java like :
private Date date = new Date();

2010/4/19 Ray Weidner <ra...@gmail.com>

> Hi All,
>
> Does anyone have any good suggestions for date/time entry components?  Does
> Wicket offer a standard solution for this common case?
>
> Thanks,
> Ray Weidner
>