I thought that as well, but turns out in that case MyFormComponent.getModelObject() returns MyPojo, and NOT MyProperty. That presents two problems: -MyFormComponent does not really need to know of MyPojo to begin with (what if MyProperty is obtained some other way) -in MyFormComponent.convertInput, I need to eventually setConvertedInput(MyProperty), and in onBeforeRender the corollary getModelObject.
Ned Collyer wrote: > > You should be able to do > > Form form = new Form("form", new CompoundPropertyModel(MyPojo)); > page.add(form); > > form.add(new MyFormComponent("myProperty")); > > > See > http://cwiki.apache.org/WICKET/working-with-wicket-models.html#WorkingwithWicketmodels-CompoundPropertyModels > > > ----- ---------------- Nikita Tovstoles vside.com ---------------- -- View this message in context: http://www.nabble.com/please-review-my-CompoundPropertyModel-use-tp19868935p19870526.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]