Re: Panel to be used as an abstract container

2010-11-11 Thread Martin Grigorov
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

Re: Panel to be used as an abstract container

2010-11-11 Thread Poko Booth
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

Re: Panel to be used as an abstract container

2010-11-11 Thread Martin Grigorov
Yes, the panel always contribute with its .html (always the same html). The Fragment is the dynamic content (so small that you don't to create Panel for it). This is what you want, right ? On Thu, Nov 11, 2010 at 10:35 AM, Poko Booth poko.bo...@gmail.com wrote: Just to see if we are on the

Re: Panel to be used as an abstract container

2010-11-11 Thread Poko Booth
Exactly, thank you very much! I will try that in the afternoon. I had no idea about Fragments, never used them before. I want to use this panel only for ui purposes. I don't want to repeat rounded corners markup in each page or multiple times in the same page, better have it in one place. Thank

Re: Panel to be used as an abstract container

2010-11-11 Thread Martin Grigorov
If you have rounded corners at bottom of the panel then you'll need to add the Fragment *in* the Panel, but provide wicket:fragment in the Page (the fragment's markup provider) It is a bit tricky but I'm sure you'll manage it. On Thu, Nov 11, 2010 at 11:02 AM, Poko Booth poko.bo...@gmail.com

Re: Panel to be used as an abstract container

2010-11-11 Thread Poko Booth
Yes! Exactly, that's what I described in the previous mail. I hope panel will able to find the fragment declared to its parent. I'll let you know. On Thu, Nov 11, 2010 at 12:23 PM, Martin Grigorov mgrigo...@apache.orgwrote: If you have rounded corners at bottom of the panel then you'll need to