On Thu, 12 Sep 2013 09:54:31 -0300, Jeremy Villalobos <jeremyvillalo...@gmail.com> wrote:

Object onActionFromAccept(){
mOrder.Status = TrasactionSatus.Accepted;
session.save(mOrder);
 //deduct the volume from the biomass product
return mOrderAccepted;
}
When I press accept action link, I get the error:
uninitialized proxy passed to save()

It looks like I made a common error done by Tapestry 5 newbies, but I could not find exiting threads on this issue.

It's not a Tapestry error at all. If you looked at the stack trace you didn't provide (and you always should when posting errors to a mailing list), you'll find that it's actually a Hibernate exception. Use Session.merge() instead of Session.save() and it'll probably work:

mOrder = session.merge(mOrder);

--
Thiago H. de Paula Figueiredo

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

Reply via email to