myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Naik, Bhushan " <bhushan.n...@citi.com>
Subject RE: Trinidad : date validation
Date Fri, 21 Nov 2008 21:25:54 GMT
Thanks  Matthias , Can we select the dynamic dates for  max and min
value. I am setting this dates in the bean #{Mybean.maxdate}  but its
not working.

Thanks
Bhushan

-----Original Message-----
From: mwessendorf@gmail.com [mailto:mwessendorf@gmail.com] On Behalf Of
Matthias Wessendorf
Sent: Friday, November 21, 2008 11:21 AM
To: MyFaces Development
Subject: Re: Trinidad : date validation

On Fri, Nov 21, 2008 at 4:59 PM, Naik, Bhushan <bhushan.naik@citi.com>
wrote:
>  Hi,
>        I want to use Trinidad where in need to restrict user to enter 
> any date that is less than (Currentdate + 7 days), the trinidad tag I 
> am using is "tr:inputDate".
> I know  in javascript we can do this but how to do this in  Trinidad?

This provides the "range":
http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_validateDateTi
meRange.html

and to be more fancy, you can use this:
http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_validateDateRe
striction.html

-Matthias

> Please suggest.
>
> Thanks
> Bhushan
>
>



--
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

Mime
View raw message