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 give the property expression
explicitly, but the component name is used. When you don't want that
(keep your HTML independent of your Java), or can't do that (reusable
panels), you can't use CPM.

So, what I'd like is a CompoundPropertyModel(Object, String) that
works like in PM: "Construct with a wrapped (IModel) or unwrapped
(non-IModel) object and a property expression that works on the given
model.".

I feel like I'm missing something basic here, sorry - perhaps you can
enlighten me why this wouldn't make sense.

Cheers,
Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to