On Fri, 27 Apr 2012 17:33:01 -0300, George Christman <gchrist...@cardaddy.com> wrote:

Hi Thiago, I'm confused, my onActivate method is called on both page load and submit, both which call the same query. Does tapestry disregard the object after the page's initial render requiring a second query to rebuild the
object on submit?

Yes. Redirect-after-post. Events (form submissions, component events) are always handled in a different request from full page rendering.

Why would hibernate query things differently on submit
compared to on page load. Thanks for your help.

It depends on which properties of the object you've read during the request. During submit, most probably you don't read lazy-loaded properties, but probably while rendering.

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