So I am guessing your model is of TemporalType.Date and If it is the case
and if your not yet resolved it, can you try changing the dateformat to
mm-dd-yy ? or dd-mm-yy ? And see if your getting the validation error. If
your not then DatePicker field is expecting that default format and to
override it I guess Julien's suggestion would be the way to go.
Cheers


On Fri, Dec 10, 2010 at 4:53 PM, Nivedan Nadaraj <[email protected]>wrote:

> So did that work? Have you tried to check your model annotation?
>
>
>
> On Wed, Dec 8, 2010 at 10:24 PM, Anna Simbirtsev <[email protected]>wrote:
>
>> It is a pure Date.
>>
>> On Tue, Dec 7, 2010 at 9:24 PM, nivs <[email protected]> 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: [email protected]
>> > For additional commands, e-mail: [email protected]
>> >
>> >
>>
>>
>>
>> --
>> Anna Simbirtsev
>> (416) 729-7331
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>

Reply via email to