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;
}
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
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
* 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/
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