Hi Jeremy,
Nice I follow you now. I can have a container java class and have any number
of member variables which in turn can be a hibernate entity and a regular
java bean. The container java class will be the model. And on detach; i
would have to have the container java class extend IModel and implement the
detach() am i right?

Thank you will give that a shot. Thanks for the time and thoughts.

Regards
Nivedan

On Fri, Jul 16, 2010 at 7:44 PM, Jeremy Thomerson <jer...@wickettraining.com
> wrote:

> Either create a model object that contains your study and foo objects, or
> hold an IModel<foo> as a private variable. Remember it's just regular java,
> so you can use member variables. Just don't forget to detach any model you
> hold as a variable manually.
>
> Jeremy Thomerson
> -- sent from my smartphone - please excuse formatting and spelling errors
>
> On Jul 16, 2010 6:30 AM, "Nivedan Nadaraj" <shravann...@gmail.com> wrote:
>
> Thanks. How do i let the form know that it has one or more models? In the
> above I invoke the
> super(id, new CompoundPropertyModel<Study>(study)); So this wraps the model
> as study. How will be able to add the second model in the same manner?
> If it sounds too basic do bear with me I will experiment as well.
>
> Thanks again
> Niv
>
>
> On Fri, Jul 16, 2010 at 7:04 PM, James Carman <ja...@carmanconsulting.com
> >wrote:
>
>
> > Your form can edit two different objects. It will edit whatever you bind
> > your fields to
> >
> > O...
>

Reply via email to