Yes, I want to use a child class in multiple places of parent markup. How should I handle that? If it does not exist and isn't any way to do that, I think it's a good feature for the future.
On Sun, Jan 9, 2022 at 4:34 PM Bergmann Manfred <m...@software-by-mabe.com> wrote: > Hi. > > To my knowledge that doesn’t work. > This is probably a case to prefer composition over inheritance? > > > Manfred > > > > Am 09.01.2022 um 13:55 schrieb vahid ghasemi <vahidghasemi...@gmail.com > >: > > > > Hello, > > How can I use 2 wicket:child for 1 inherited class? > > Like this: > > > > <h1>Hello</h1> > > <wicket:child child-id ="first"> > > <h2>Hello</h2> > > <wicket:child child-id ="second"> > > > > > > <wicket:extend id="first"> > > <h1>Hello again</h1> > > <wicket:extend id="second"> > > <h2>Hello again</h2> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >