So did that work? Have you tried to check your model annotation?

On Wed, Dec 8, 2010 at 10:24 PM, Anna Simbirtsev <asimbirt...@gmail.com>wrote:

> It is a pure Date.
>
> On Tue, Dec 7, 2010 at 9:24 PM, nivs <shravann...@gmail.com> wrote:
> >
> > Hi
> >
> > If your getting the date format error from the Model side and it is
> > expecting a timestamp , then you might get that issue.
> > Are you using a TimeStamp field or pure date?
> >
> > If I wanted only to store date in the backend without timestamp details
> my
> > model has to be decorated like
> >
> > @Temporal(TemporalType.DATE) //This is important
> > @Column(name = "DATE_OF_APPLICATION", length = 7)
> > public Date getDateOfApplication() {
> >        return this.dateOfApplication;
> > }
> >
> > If for instance it was
> > @Temporal(TemporalType.TIMESTAMP)
> >
> > It will fail validation based on the format.
> >
> > Hope that helps
> > Cheers
> >
> >
> >
> >
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/DatePicker-to-pick-a-year-tp3063856p3077604.html
> > Sent from the Users forum 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
> >
> >
>
>
>
> --
> Anna Simbirtsev
> (416) 729-7331
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to