I'm little confused now about not using detachable model in places you
have marked - I have in first place to pull the object from item:
final CarPart carPart = (CarPart) item.getModelObject();
which is load() object correctly - i tested it by quickly putting:
                @Override
                protected Object load() {
                        System.out.println("\n\n\n LOAD object: " + 
this.carPartId + "\n\n\n");
                        return carPartService.getCarPartById(this.carPartId);
                }
for 3 elements on the page I got in logs:
 LOAD object: 13

 LOAD object: 12

 LOAD object: 2
So I think deatachable model is used here? Am I wrong?

If I want to use item.setModelObject(new
CompoundPropertyModel(carPart)); how can I get netsted object in:
carPart.getCarModel().getModelName()

Best regards,
Adr

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to