Thiago H. de Paula Figueiredo wrote:
> 
> Tapestry form field components don't update the edited property when a  
> validation error ocurrs
> 
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!!! if i set either name or surname property to some dummy
value, things work again. Is it expected behavior? For me this is at least
surprising. there must be a check somewhere like obj == null ||
isEmpty(obj.toString()) . of course i will check toString to never return
empty string 


-- 
View this message in context: 
http://old.nabble.com/-T5.1--select-with-required-validation-tp28461777p28462691.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to