You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by sh...@sms.at on 2005/09/29 08:44:11 UTC
Validator
Hello!
Have a question concering the validator of the inputDate component.
How can I use it :-)
I have two inputDate components "startDate" and "endDate" and I want to guarantee that the startDate is before the endDate. Is this possible?
By the way! Is there a validation which I can use to check that the user doesn't overwrite a document with the same name.
So if he/she save a report which has the same name as a report already stored in the database, i want to show a confirm window. Is ther a validation I can use?
Thanks in advance,
regards Conny
--
Ein Service von http://www.sms.at
Re: Validator
Posted by Mike Kienenberger <mk...@gmail.com>.
As far as I know, there aren't any validators available yet that
compare the values of two components other than validateEqual.
However, it should be pretty trivial to modify validateEqual to be
validateBefore. If nothing else, I'll need to write it myself soon
for my own use. I'd also like to see a
validateOtherComponentRequired validator.
http://myfaces.apache.org/tomahawk/validateEqual.html
On 9/29/05, shed@sms.at <sh...@sms.at> wrote:
> Hello!
>
> Have a question concering the validator of the inputDate component.
> How can I use it :-)
> I have two inputDate components "startDate" and "endDate" and I want to guarantee that the startDate is before the endDate. Is this possible?
>
> By the way! Is there a validation which I can use to check that the user doesn't overwrite a document with the same name.
> So if he/she save a report which has the same name as a report already stored in the database, i want to show a confirm window. Is ther a validation I can use?
>
> Thanks in advance,
>
> regards Conny
>
> --
> Ein Service von http://www.sms.at
>
>
Re: Validator
Posted by Mike Kienenberger <mk...@gmail.com>.
Oops. Hit reply before taking a crack at your second question. I
think that you'd need to use javascript on the browser to detect if a
file exists, if it's even possible to do this at all. It's
browser-specific behavior.
On 9/29/05, shed@sms.at <sh...@sms.at> wrote:
> Hello!
>
> Have a question concering the validator of the inputDate component.
> How can I use it :-)
> I have two inputDate components "startDate" and "endDate" and I want to guarantee that the startDate is before the endDate. Is this possible?
>
> By the way! Is there a validation which I can use to check that the user doesn't overwrite a document with the same name.
> So if he/she save a report which has the same name as a report already stored in the database, i want to show a confirm window. Is ther a validation I can use?
>
> Thanks in advance,
>
> regards Conny
>
> --
> Ein Service von http://www.sms.at
>
>