Re: Panel to be used as an abstract container
Martin, wicket border was what I actually needed ;) Thanx for your time On Nov 11, 2010, at 12:29 PM, Poko Booth wrote: > 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 > wrote: > If you have rounded corners at bottom of the panel then you'll need to add > the Fragment *in* the Panel, but provide 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 wrote: > > > 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 you again > > > > On Thu, Nov 11, 2010 at 11:53 AM, Martin Grigorov > >wrote: > > > > > 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 > > wrote: > > > > > > > Just to see if we are on the same page: > > > > > > > > You mean that the CustomPanel.html will be like this: > > > > ... > > > > > > > > > > > > ... > > > > > > > > And in the APage.html: > > > > ... > > > > > > > > > > > > ...PANEL CONTENTS HERE... > > > > > > > > ... > > > > > > > > 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 > > > > 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 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 > > > > > > ... > > > > > > > > > > > > [other ui stuff here] > > > > > > > > > > > > > > > > > > ... > > > > > > > > > > > > APage.java > > > > > > ... > > > > > > CustomPanel pnl = new CustomPanel("pnl"); > > > > > > pnl.add(new Label("test-lbl", "Tadaaa")); > > > > > > add(pnl); > > > > > > ... > > > > > > > > > > > > APage.html > > > > > > ... > > > > > > > > > > > > > > > > > > > > > > > > ... > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > >
Re: Panel to be used as an abstract container
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 wrote: > If you have rounded corners at bottom of the panel then you'll need to add > the Fragment *in* the Panel, but provide 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 wrote: > > > 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 you again > > > > On Thu, Nov 11, 2010 at 11:53 AM, Martin Grigorov > >wrote: > > > > > 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 > > wrote: > > > > > > > Just to see if we are on the same page: > > > > > > > > You mean that the CustomPanel.html will be like this: > > > > ... > > > > > > > > > > > > ... > > > > > > > > And in the APage.html: > > > > ... > > > > > > > > > > > > ...PANEL CONTENTS HERE... > > > > > > > > ... > > > > > > > > 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 > > > > 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 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 > > > > > > ... > > > > > > > > > > > > [other ui stuff here] > > > > > > > > > > > > > > > > > > ... > > > > > > > > > > > > APage.java > > > > > > ... > > > > > > CustomPanel pnl = new CustomPanel("pnl"); > > > > > > pnl.add(new Label("test-lbl", "Tadaaa")); > > > > > > add(pnl); > > > > > > ... > > > > > > > > > > > > APage.html > > > > > > ... > > > > > > > > > > > > > > > > > > > > > > > > ... > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > >
Re: Panel to be used as an abstract container
If you have rounded corners at bottom of the panel then you'll need to add the Fragment *in* the Panel, but provide 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 wrote: > 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 you again > > On Thu, Nov 11, 2010 at 11:53 AM, Martin Grigorov >wrote: > > > 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 > wrote: > > > > > Just to see if we are on the same page: > > > > > > You mean that the CustomPanel.html will be like this: > > > ... > > > > > > > > > ... > > > > > > And in the APage.html: > > > ... > > > > > > > > > ...PANEL CONTENTS HERE... > > > > > > ... > > > > > > 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 > > > 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 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 > > > > > ... > > > > > > > > > > [other ui stuff here] > > > > > > > > > > > > > > > ... > > > > > > > > > > APage.java > > > > > ... > > > > > CustomPanel pnl = new CustomPanel("pnl"); > > > > > pnl.add(new Label("test-lbl", "Tadaaa")); > > > > > add(pnl); > > > > > ... > > > > > > > > > > APage.html > > > > > ... > > > > > > > > > > > > > > > > > > > > ... > > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > >
Re: Panel to be used as an abstract container
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 you again On Thu, Nov 11, 2010 at 11:53 AM, Martin Grigorov wrote: > 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 wrote: > > > Just to see if we are on the same page: > > > > You mean that the CustomPanel.html will be like this: > > ... > > > > > > ... > > > > And in the APage.html: > > ... > > > > > > ...PANEL CONTENTS HERE... > > > > ... > > > > 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 > >wrote: > > > > > I think you need Fragment instead of Panel > > > > > > On Thu, Nov 11, 2010 at 9:47 AM, Poko Booth > > 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 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 > > > > ... > > > > > > > > [other ui stuff here] > > > > > > > > > > > > ... > > > > > > > > APage.java > > > > ... > > > > CustomPanel pnl = new CustomPanel("pnl"); > > > > pnl.add(new Label("test-lbl", "Tadaaa")); > > > > add(pnl); > > > > ... > > > > > > > > APage.html > > > > ... > > > > > > > > > > > > > > > > ... > > > > > > > > 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 > > > > > > > > > > > > > >
Re: Panel to be used as an abstract container
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 wrote: > Just to see if we are on the same page: > > You mean that the CustomPanel.html will be like this: > ... > > > ... > > And in the APage.html: > ... > > > ...PANEL CONTENTS HERE... > > ... > > 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 >wrote: > > > I think you need Fragment instead of Panel > > > > On Thu, Nov 11, 2010 at 9:47 AM, Poko Booth > 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 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 > > > ... > > > > > > [other ui stuff here] > > > > > > > > > ... > > > > > > APage.java > > > ... > > > CustomPanel pnl = new CustomPanel("pnl"); > > > pnl.add(new Label("test-lbl", "Tadaaa")); > > > add(pnl); > > > ... > > > > > > APage.html > > > ... > > > > > > > > > > > > ... > > > > > > 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 > > > > > > > > >
Re: Panel to be used as an abstract container
Just to see if we are on the same page: You mean that the CustomPanel.html will be like this: ... ... And in the APage.html: ... ...PANEL CONTENTS HERE... ... 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 wrote: > I think you need Fragment instead of Panel > > On Thu, Nov 11, 2010 at 9:47 AM, Poko Booth 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 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 > > ... > > > > [other ui stuff here] > > > > > > ... > > > > APage.java > > ... > > CustomPanel pnl = new CustomPanel("pnl"); > > pnl.add(new Label("test-lbl", "Tadaaa")); > > add(pnl); > > ... > > > > APage.html > > ... > > > > > > > > ... > > > > 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 > > > > >
Re: Panel to be used as an abstract container
I think you need Fragment instead of Panel On Thu, Nov 11, 2010 at 9:47 AM, Poko Booth 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 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 > ... > > [other ui stuff here] > > > ... > > APage.java > ... > CustomPanel pnl = new CustomPanel("pnl"); > pnl.add(new Label("test-lbl", "Tadaaa")); > add(pnl); > ... > > APage.html > ... > > > > ... > > 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 > >