You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Michal Prinke <bo...@icpnet.pl> on 2004/06/11 13:09:41 UTC
dateValidator.minimum ???
Hello,
I'd like to have a date validator that would not allow
to enter past dates. I wrote this:
<bean name="datevald" class="org.apache.tapestry.valid.DateValidator">
<set-property name="required" expression="true"/>
<set-property name="minimum" expression="new java.util.Date()"/>
</bean>
It works, but I think it might be uneconomical because of this
new Date()... what do you think?
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: dateValidator.minimum ???
Posted by "Filip S. Adamsen" <fi...@stubkjaer-adamsen.dk>.
Hi Michal,
I would not worry about that if I were you.
> -----Original Message-----
> From: Michal Prinke [mailto:bogien@icpnet.pl]
> Sent: Friday, June 11, 2004 1:10 PM
> To: Tapestry
> Subject: dateValidator.minimum ???
>
> Hello,
>
> I'd like to have a date validator that would not allow
> to enter past dates. I wrote this:
>
> <bean name="datevald" class="org.apache.tapestry.valid.DateValidator">
> <set-property name="required" expression="true"/>
> <set-property name="minimum" expression="new java.util.Date()"/>
> </bean>
>
> It works, but I think it might be uneconomical because of this
> new Date()... what do you think?
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org