On Wed, 05 May 2010 18:48:47 -0300, Josh Canfield <joshcanfi...@gmail.com>
wrote:
Your problem is definitely with the Required validator, although it's
a little suspect that a valid User.toString() returns an empty string
That's strange for me too.
I'm not sure why value.toString() is called. The class is documented
as "A validator that enforces that the value is not null and not the
empty string." Perhaps it should be checking that value is an instance
of String before testing for blank?
It looks like a slight bug for me.
A workaround (way around) would be to create your own implementation
of the Required validator. Perhaps a NotNull validator that only
checks for null? Maybe one already exists out there but I didn't look.
Implementing one is quite easy.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org