On Fri, 04 Feb 2011 18:31:53 -0200, <jackkuros...@w9z.org> wrote:

Two things that might have a bearing on this:
1. I am creating a new item that backs the form in the page .java file at its declaration. So Item item = new Item();

Never initialize a field in its declaration unless it is an atomic value. That's the source of your problem. After the request is finished, all fields are reset to their initial declared values. As Item is a class, your item fields is always pointing to the same object. Use the prepare event or onActivate() instead.

By the way, use the validate form event to do validation instead of submit.

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