You could put your components for editing the two different objects
onto two different panels, which each have a CPM inside your form.

On Fri, Jul 16, 2010 at 7:29 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
>>
>> On Jul 16, 2010 4:23 AM, "Nivedan Nadaraj" <shravann...@gmail.com> wrote:
>> > Hi
>> > Thanks for the pointer. I did read through models and
>> > LoadableDetachableModel. Not sure if this model addresses the problem at
>> > hand. Isn't LDM related to performance and resoles
>> > Serialization issues? In the same note I came across Chaining of models.
>> or
>> > Nesting of Models...can you/someone give me more information on it.
>> >
>> > Probably I should have mentioned that I wrap my hibernate entity in a
>> > CompoundPropertyModel like this
>> >
>> > MyForm extends Form{
>> >
>> > MyForm( new CompoundPropertyModel(studyEntity));
>> > //I also want to be able to add another model that will capture input
>> > from the form.e.g LdapStudy
>> >
>> > }
>> >
>> >
>> > Any pointers will be great thanks again for the time
>> >
>> > Nive
>> > On Thu, Jul 15, 2010 at 5:10 PM, vov <vov...@mail.ru> wrote:
>> >
>> >>
>> >> see org.apache.wicket.model.LoadableDetachableModel
>> >> --
>> >> View this message in context:
>> >>
>>
>> http://apache-wicket.1842946.n4.nabble.com/Re-Wicket-s-Form-Model-using-hibernate-entity-or-value-objects-Design-tp2289854p2289870.html
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >> ---------------------------------------------------------------------
>> >> 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

Reply via email to