You shouldnt put that object directly in a CPM, but have a loadabled detachable model in between. Because now you probably have that hib object in the page between requests
On 28/02/2009, Stephen Swinsburg <s.swinsb...@lancaster.ac.uk> wrote: > Hi all, > > I'm after your thoughts on the following method. > > Suppose there is a wicket form with some fields that can map directly > to a simple Hibernate object, and hence a db table. Is it safe to > simply wrap this object in a CompoundPropertyModel and use it as the > backing model for the form? > Then in the onSubmit method, calling a method to get the object from > the form's model and saving it via Hibernate. > > This does work fine, I'm just after any pitfalls that might happen > down the track. Very simple form here. > > thanks. > S > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org