You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Tony Nelson <tn...@starpoint.com> on 2007/05/17 17:25:07 UTC
Hopefully an easy one
I have a simple DatePicker
<input jwcid="asOfDate@DatePicker"
value="ognl:tradeSearchKeys.receivedTimesheetForWeekEnding"
translator="translator:date,pattern=M/d/yyyy"
validators="validators:required"
displayName="As of Date"/>
All that I want to do is verify that the user entered the date as
MM/DD/YYYY.
What is the correct validator to use in this situation?
Thanks again
Tony Nelson
Re: Hopefully an easy one
Posted by Daniel Kleine-Albers <dk...@dka-edv.net>.
Hi Tony,
would using a minDate validator be an option - to restrict valid
values to dates later as 01/01/2007 for example?
Best regards
Daniel
On 18.05.2007, at 04:24, Tony Nelson wrote:
> No, it will accept user input as: 5/17/07 which gets translated in
> my queries to 5/17/0007 and causes hibernate to self destruct.
>
> If a user enters 5/17/07 I expect an error to be raise, but alas, no.
>
> Thanks
> Tony
>
> Andreas Andreou wrote:
>> doesn't translator="translator:date,pattern=MM/dd/yyyy" work?
>>
>> On 5/17/07, Tony Nelson <tn...@starpoint.com> wrote:
>>>
>>> I have a simple DatePicker
>>>
>>> <input jwcid="asOfDate@DatePicker"
>>> value="ognl:tradeSearchKeys.receivedTimesheetForWeekEnding"
>>> translator="translator:date,pattern=M/d/
>>> yyyy"
>>> validators="validators:required"
>>> displayName="As of Date"/>
>>>
>>>
>>> All that I want to do is verify that the user entered the date as
>>> MM/DD/YYYY.
>>>
>>> What is the correct validator to use in this situation?
>>>
>>> Thanks again
>>> Tony Nelson
>>>
>>>
>>> --------------------------------------------------------------------
>>> -
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Hopefully an easy one
Posted by Tony Nelson <tn...@starpoint.com>.
No, it will accept user input as: 5/17/07 which gets translated in my
queries to 5/17/0007 and causes hibernate to self destruct.
If a user enters 5/17/07 I expect an error to be raise, but alas, no.
Thanks
Tony
Andreas Andreou wrote:
> doesn't translator="translator:date,pattern=MM/dd/yyyy" work?
>
> On 5/17/07, Tony Nelson <tn...@starpoint.com> wrote:
>>
>> I have a simple DatePicker
>>
>> <input jwcid="asOfDate@DatePicker"
>> value="ognl:tradeSearchKeys.receivedTimesheetForWeekEnding"
>> translator="translator:date,pattern=M/d/yyyy"
>> validators="validators:required"
>> displayName="As of Date"/>
>>
>>
>> All that I want to do is verify that the user entered the date as
>> MM/DD/YYYY.
>>
>> What is the correct validator to use in this situation?
>>
>> Thanks again
>> Tony Nelson
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>
>
>
Re: Hopefully an easy one
Posted by Andreas Andreou <an...@di.uoa.gr>.
doesn't translator="translator:date,pattern=MM/dd/yyyy" work?
On 5/17/07, Tony Nelson <tn...@starpoint.com> wrote:
>
> I have a simple DatePicker
>
> <input jwcid="asOfDate@DatePicker"
> value="ognl:tradeSearchKeys.receivedTimesheetForWeekEnding"
> translator="translator:date,pattern=M/d/yyyy"
> validators="validators:required"
> displayName="As of Date"/>
>
>
> All that I want to do is verify that the user entered the date as
> MM/DD/YYYY.
>
> What is the correct validator to use in this situation?
>
> Thanks again
> Tony Nelson
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
--
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting