Re: PropertyModel implementing IComponentInheritedModel

2008-07-07 Thread Thomas Kappler
On Mon, Jul 7, 2008 at 10:17 AM, Johan Compagner <[EMAIL PROTECTED]> wrote: > CompoundPropertyModel cpm = new CompoundPropertyModel(); > Form form = new Form("form", cpm) > form.add(new TextField("name", cpm.bind("firstName")); Perfect! Had overlooked that. Thanks, Thomas > On Mon, Jul 7, 2008

Re: PropertyModel implementing IComponentInheritedModel

2008-07-07 Thread Johan Compagner
Bounded is deprecated look at CompoundPropertyModel.bind(String) so CompoundPropertyModel cpm = new CompoundPropertyModel(); Form form = new Form("form", cpm) form.add(new TextField("name", cpm.bind("firstName")); johan On Mon, Jul 7, 2008 at 8:59 AM, Maurice Marrink <[EMAIL PROTECTED]> wrote:

Re: PropertyModel implementing IComponentInheritedModel

2008-07-06 Thread Maurice Marrink
Have you seen BoundCompoundPropertyModel? It sounds like you are looking for that behavior. Maurice On Sun, Jul 6, 2008 at 9:42 AM, Thomas Kappler <[EMAIL PROTECTED]> wrote: > Thanks, Johan. Perhaps I wasn't clear enough about the motivation. > > On Sun, Jul 6, 2008 at 6:51 AM, Johan Compagner <

Re: PropertyModel implementing IComponentInheritedModel

2008-07-06 Thread Thomas Kappler
Thanks, Johan. Perhaps I wasn't clear enough about the motivation. On Sun, Jul 6, 2008 at 6:51 AM, Johan Compagner <[EMAIL PROTECTED]> wrote: > Why should the propertymodel be an inherited? Well, to have model sharing. So why not just use a CPM? Because it has another difference to PM: you don't

Re: PropertyModel implementing IComponentInheritedModel

2008-07-05 Thread Johan Compagner
overlooked something, there's no variant of PropertyModel > implementing IComponentInheritedModel. > > IComponentInheritedModel demands only one method, wrapOnInheritance. > Looking at the implementation of CompoundPropertyModel, > wrapOnInheritance does nothing but return an > A

PropertyModel implementing IComponentInheritedModel

2008-07-05 Thread Thomas Kappler
Hi, if I haven't overlooked something, there's no variant of PropertyModel implementing IComponentInheritedModel. IComponentInheritedModel demands only one method, wrapOnInheritance. Looking at the implementation of CompoundPropertyModel, wrapOnInheritance does nothing but