Hi Markus,
you simply have to provide the POJO to the CompoundPropertyModel.
Provide simple PropertyModels related to the compound model for the fields.
You can imagine the whole concept as "the path to the value".
Pojo myPojo = new Pojo();
IModel model = new CompoundPropertyModel(myPojo);
IModel aPropertyModel = new PropertyModel(model, "theNameOfAccessorInPojo");
Label myPojoProperty = new Label("aWicketId", new aPropertyModel);
I use a label. Replace it by your component.
Cheers
Per
PS: If you new to wicket - checkout the wiki and the examples. They explain
alot.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]