lol your a funny guy :) okay see code below, the validate method is never
called when using Date, it works perfectly with other data types.

public class MinDate extends AbstractValidator<String, Date> {

    public MinDate(JavaScriptSupport javaScriptSupport) {
        super(String.class, Date.class, "min-date", javaScriptSupport);
        System.out.println("min-date " + javaScriptSupport);
    }

    @Override
    public void validate(Field field, String constraintValue,
MessageFormatter formatter, Date value)
            throws ValidationException
    {
        System.out.println(constraintValue);
            throw new ValidationException(buildMessage(formatter, field,
constraintValue));
    }


On Tue, Dec 10, 2013 at 12:34 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Tue, 10 Dec 2013 15:01:49 -0200, George Christman <
> gchrist...@cardaddy.com> wrote:
>
>  Hello, I'm trying to create a custom validator for date fields. Example,
>> no date earlier than 1953. I'm finding the validate method in my minDate
>> validator isn't being called, however js validation works. Anybody have
>> any thoughts on this?
>>
>
> I'm not a psychic, so, no code, no help . . . :D
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
George Christman
www.CarDaddy.com
P.O. Box 735
Johnstown, New York

Reply via email to