On Wed, 05 May 2010 12:45:20 -0300, paha <ch_pa...@yahoo.com> wrote:

thank you, you gave me some idea and i found a reason. my User class
overrides toString returning name+surname. when the valueencoder runs
toObject method, a User-Object with only id set gets created. so the
toString of this object returns "" and the object is considered empty even if it is not null!!!

You should provide your own ValueEncoder that doesn't rely on toString().

if i set either name or surname property to some dummy value, things work again. Is it expected behavior?

Tapestry's Required validator treats empty string as null.

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

Reply via email to