they do push the model, but also notice how the two pushed models are
connected together by the same model object

-igor


On 10/12/07, Per Newgro <[EMAIL PROTECTED]> wrote:
>
> > i dont really understand what you are talking about.
> >
> > you have a panel that can display a person right? and in an order you
> have
> > two instances of person: the order and the invoice, and you want to
> reuse
> > your panel?
> No. On one page i edit the order and on another page i edit the invoice.
> Both are unrelated to each other and will be "created" by pressing a menu
> link. But both contain an related person (order - shipTo and invoice
> billTo).
> And this person will be presented in the personpanel.
>
> > orderpage extends webpage {
> >   public orderpage(IModel order) {
> >         add(new personpanel("shipto", new propertymodel(order,
> "shipto"));
> >         add(new personpanel("billto", new propertymodel(order,
> "bilto"));
> >    }
> But thats not the way i read the other post until now in this thread.
> There
> was always the speech of setting the model to the page and let the panels
> get
> their data from the parent (e.g. page) model (pull by sub-component). But
> this example says - push the model into the sub-components.
>
> Thanks
> Per
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to