Re: Tearing my hair out using Palette with hibernate managed object

2009-04-18 Thread Thiago H. de Paula Figueiredo
Em Sat, 18 Apr 2009 07:14:41 -0300, daniel joyce escreveu: What I learned today "If you think something is wrong with Tapestry/Hibernate, more than likely you need to fix or override equals() and hashcode()" By the way, it is a recommended practice to implement this methods in all classe

Re: Tearing my hair out using Palette with hibernate managed object

2009-04-18 Thread daniel joyce
What I learned today "If you think something is wrong with Tapestry/Hibernate, more than likely you need to fix or override equals() and hashcode()" On Sat, Apr 18, 2009 at 1:23 AM, daniel joyce wrote: > Which method in a page class should I setup to ensure I can reattach > my object to the Hibe

Re: Tearing my hair out using Palette with hibernate managed object

2009-04-18 Thread daniel joyce
Which method in a page class should I setup to ensure I can reattach my object to the HibernateSession which is being used by the render request? Nothing in the docs provides any hints. On Sat, Apr 18, 2009 at 12:44 AM, daniel joyce wrote: > Hmm, apparently tapestry doesn't keep the session open

Re: Tearing my hair out using Palette with hibernate managed object

2009-04-18 Thread daniel joyce
Hmm, apparently tapestry doesn't keep the session open during the render phase? What is the easiest way to fix this? -Daniel On Sat, Apr 18, 2009 at 12:34 AM, daniel joyce wrote: > Also, lazy fetching is failing, even inside the OnActivate method. > > I am using objects that were set by another

Re: Tearing my hair out using Palette with hibernate managed object

2009-04-18 Thread daniel joyce
Also, lazy fetching is failing, even inside the OnActivate method. I am using objects that were set by another page, and inside onActivate, I am making sure to attach them to a session via the appropriate method on a dao. (daos are subclass chenillekit AbstractHibernateDAO, user doRefresh() method

Re: Tearing my hair out using Palette with hibernate managed object

2009-04-17 Thread daniel joyce
Ok, I'm starting to get a mental model of how the pages are set up/reused One question, what is the ordering of these lifecycle events? Is it PageLoaded() // Fired when the container first loads the page PageAttached() // Page attached to request OnPassivate() // To create the URL + context OnA

Tearing my hair out using Palette with hibernate managed object

2009-04-17 Thread daniel joyce
I am using the Generic Select model with a Hibernate selected object. if I jump to the page with a non persisted object, make changes in my form and hit save, it throws up a exception. If I then reload the page, the form displays the object with all my changes. The OnActivate/Passivate method rel