Ahh. Ok. I can set the personpnel its model by calling
orderpage extends webpage {
public orderpage(IModel order) {
add(new personpanel("shipto", new propertymodel(order,"shipto"));
}
}
invoicepage extends webpage {
public invoicepage(IModel invoice) {
add(new personpanel("billto", new propertymodel(invoice,"billto"));
}
}
So reusing of person component is save.
Lets assume the order contains a person which contains an adress.
I can access it with "order.getShipTo().getAdress()".
I add the model for adesspanel the same way as for personpanel above.
My question is if the order will be exchanged, will the subsequent
adress-model be refreshed to? Isn't this model referencing the old adress in
old order-model?
Thanks having so much patience for me
Per
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]