File a JIRA please and I'll take a look later.

On Wed, 11 Dec 2013 14:24:54 -0200, George Christman <gchrist...@cardaddy.com> wrote:

On Wed, Dec 11, 2013 at 9:04 AM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

Did you notice you use "min-date" in some places and "minDate" in others?
They should all match.


On Wed, 11 Dec 2013 11:49:22 -0200, George Christman <
gchrist...@cardaddy.com> wrote:

 public static void
contributeFieldValidatorSource(MappedConfiguration<String, Validator>
configuration, JavaScriptSupport js) {
        configuration.add("minDate", new MinDate(js));
}


minDate


 public class MinDate extends AbstractValidator<String, Date> {

    public MinDate(JavaScriptSupport javaScriptSupport) {
        super(String.class, Date.class, "min-date", javaScriptSupport);


"min-date"


Isn't min-date only used as a reference to the .properties file? I'm not
sure why they should match, see tapestry validator below.

https://github.com/apache/tapestry-5/blob/5.4-alpha-29/tapestry-core/src/main/java/org/apache/tapestry5/validator/MinLength.java

Like I pointed out earlier, it works fine with any other data type,
just not Date. I'm not sure if this is a limitation to the validator.
Is there any good way for me to check to figure that out.





 @NonVisual
@Validate("minDate=test")


minDate


--
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






--
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

Reply via email to