Just to see if we are on the same page: You mean that the CustomPanel.html will be like this: ... <div class="RoundedStuff> <div wicket:id="contents" /> </div> ...
And in the APage.html: ... <div wicket:id="pnl" /> <wicket:fragment wicket:id="whatever"> ...PANEL CONTENTS HERE... </wicket:fragment> ... and in APage.java: ... CustomPanel pnl = new CustomPanel("pnl"); pnl.add(new Fragment("contents","whatever"); ... Right? On Thu, Nov 11, 2010 at 11:12 AM, Martin Grigorov <mgrigo...@apache.org>wrote: > I think you need Fragment instead of Panel > > On Thu, Nov 11, 2010 at 9:47 AM, Poko Booth <poko.bo...@gmail.com> wrote: > > > Hi all, my first mail here, glad to join your community! > > > > I want to do the following: > > > > Create a panel that will be rendered as a box with rounded corners. I > dont > > want it to have it's inner components predefined in its class but > > dynamically adding them on each page the panel is present. I wish I could > > have its html file containg something like <wicket:extend /> and put > there > > the markup defined when used in pages. > > > > Since I dont understand my own words so far, I'll give an example: > > > > CustomPanel.html > > ... > > <div class="Foo"> > > [other ui stuff here] > > <wicket:extend /> > > </div> > > ... > > > > APage.java > > ... > > CustomPanel pnl = new CustomPanel("pnl"); > > pnl.add(new Label("test-lbl", "Tadaaa")); > > add(pnl); > > ... > > > > APage.html > > ... > > <span wicket:id="pnl"> > > <span wicket:id="test-lbl"> > > </span> > > ... > > > > I want the page rendered having the label inside the custom panel without > > having to implicitly create another panel extending the CustomPanel. > > > > So, if you understood this and have any ideas, let me know. > > > > Greetings from Greece, > > Poko > > >> > > >> > > >> > > >> > > >> > > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > >