You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Emi Lu <em...@encs.concordia.ca> on 2007/09/12 18:27:50 UTC

datetimepicker with displayFormat always return error msg?

Hello List,

Tried datetimepicker, whenever I give the displayFormat="yyyy-MM-dd", 
always get the following warning:

Invalid field value for field "todayDate".

Something wrong with my code?

my code:
<s:datetimepicker name="todayDate"
    label="TestDate (yyyy-MM-dd)"
    displayFormat="yyyy-MM-dd"/>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: datetimepicker with displayFormat always return error msg?

Posted by Emi Lu <em...@encs.concordia.ca>.
> Are you running it under Struts 2?
> 
>>
>> Tried datetimepicker, whenever I give the
>> displayFormat="yyyy-MM-dd", 
>> always get the following warning:
>>
>> Invalid field value for field "todayDate".
>>
>> Something wrong with my code?
>>
>> my code:
>> <s:datetimepicker name="todayDate"
>>     label="TestDate (yyyy-MM-dd)"
>>     displayFormat="yyyy-MM-dd"/>

I am using struts 2 . If I change to:

<s:datetimepicker name="todayDate"
label="TestDate (yyyy-MM-dd)" />

without display format, no warning msg at all.

But if the displayFormat is added, warning msg is listed.

How come? I am totally confused.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: datetimepicker with displayFormat always return error msg?

Posted by Dave Newton <ne...@yahoo.com>.
Are you running it under Struts 2?

--- Emi Lu <em...@encs.concordia.ca> wrote:

> Hello List,
> 
> Tried datetimepicker, whenever I give the
> displayFormat="yyyy-MM-dd", 
> always get the following warning:
> 
> Invalid field value for field "todayDate".
> 
> Something wrong with my code?
> 
> my code:
> <s:datetimepicker name="todayDate"
>     label="TestDate (yyyy-MM-dd)"
>     displayFormat="yyyy-MM-dd"/>
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org