Re: IComponentInheritedModel & IWrapModel just to get the component in model

2007-07-06 Thread Johan Compagner
make your own base model public abstract class ComponentAssignModel implements IWrapModel, IComponentAssignedModel { private Component component; /** * @see org.apache.wicket.model.IWrapModel#getWrappedModel() */ public IModel getWrappedModel() { return this; }

Re: IComponentInheritedModel & IWrapModel just to get the component in model

2007-07-05 Thread Igor Vaynberg
On 7/5/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote: * Vincent Demay: > I think it also avoid to write 40 code lines just to get the > component in the model. I also find it utterly complicated. Is there a reason for this that we are overlooking? -- yes, there is. the interfac

Re: IComponentInheritedModel & IWrapModel just to get the component in model

2007-07-05 Thread Matej Knopp
Perhaps you are looking for IComponentAssignedModel ? -Matej On 7/5/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote: * Vincent Demay: > I think it also avoid to write 40 code lines just to get the > component in the model. I also find it utterly complicated. Is there a reason for t

Re: IComponentInheritedModel & IWrapModel just to get the component in model

2007-07-05 Thread Jean-Baptiste Quenot
* Vincent Demay: > I think it also avoid to write 40 code lines just to get the > component in the model. I also find it utterly complicated. Is there a reason for this that we are overlooking? -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/

IComponentInheritedModel & IWrapModel just to get the component in model

2007-07-05 Thread Vincent Demay
Hi I have a custom model where i need to access to the component. The only method I found seems me a little bit overkill : my model should implement IComponentInheritedModel and I also need to declare a new class implementing IWrapModel to return on wrapOnInheritance. Furthermore all this stuf