Re: CompoundPropertyModel for label?

2011-06-12 Thread Clint Checketts
You need to set the CompoundPropertyModel on the parent object. In your example the page. Try the following code: customer = new Customer(); customer.setFirstName("Jimmy"); customer.setLastName("Dean"); customer.getAddress().setStreet("123 Easy Street");

CompoundPropertyModel for label?

2011-06-12 Thread Brian Lavender
Is it possible to use a compound property model for a label? I tried adding labels using the following, but when I run it, the label comes out with what appears to be a reference to the model. customer = new Customer(); customer.setFirstName("Jimmy"); customer.