Hi,
I use a custom FormComponent on a form:
Form myForm = new Form("form");
CompoundPropertyModel myModel = new CompoundPropertyModel(myOrder)
myForm.setModel(myModel);
The formcomponent has to set two properties of the
CompoundPropertyModel of the form. At the moment I pass the complete
CompoundPropertyModel to the FormComponent:
myForm.add(new MyFormComponent("id", myModel));
It looks terrible but it was the only solution I found. The
FormComponent has access to the complete CompoundPropertyModel and I
can't reuse the same FormComponent with other models. Any suggestions
how to set 2 models in a FormComponent?
Thanks,
Bram.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]