Re: [Wicket-user] If the wicket examples' library can put into a TabbedPanel

2006-09-24 Thread Igor Vaynberg
On 9/24/06, deafwolf <[EMAIL PROTECTED]> wrote:
I can't find the method getContentPanel() from whole wicket1.2's source code,this is the method you would implement in your base page that would return the "content" panel that needs to be swapped from request to request.
so I dicide to let the page hold a panel property, then the replacewill be easily.
exactly - and getContentPanel() returns that property. -Igor
deafwolf> 1) write all your screens using panels not pages> 2) create a container page that hosts the panel> 3) instead of using links to navigate to pages using setResponsePage(Page)> you instead call getPage().getContentPanel().replaceWith(new
> MyNewPanel(...));>> and thats it>> but you really wont gain that much because page refreshes happen all the> time and the overhead of adding your mainNavigation component to every page
> is most likely negligible.>> now the improvement you can get is if you always use ajax links and replace> the panel that way. that means your mainnavigation/header/footer are only> rendered once and that is where you can maybe see some improvement. but i
> would really profile this and see if it makes a significant difference for> you.>> -Igor>> >> > Thank you for your help.> >> > I had known the markup inheritance like the WicketExamplePage,
> > but the tag  will be add each page.> >> > If use TabbedPanel, I only to care the panel page's markup,> > I ask if can redirect a panel to another panel,
> > only to avoid markup inheritance.> > I like panel combination more, how can wicket do this?> >> > deafwolf> >> > > if you just want to have to same header and navigation on multiply pages
> > > you could use markup inheritance> > > So have a base page with the header and navigation> > > and then extend that page.> > >> > > johan> > >
> > >> > > On 9/22/06, dragon deaf <[EMAIL PROTECTED]> wrote:> > > >> > > > Hello,> > > >> > > > In the wicket examples there's a library example, if I can put it into
> > > > a TabbedPanel?> > > >> > > > I need some pages, these pages have the same header and navigation, if> > > > use TabbedPanel, I needn't to add the header each page, and it looks
> > > > like use the frame.> > > >> > > > But if use the TabbedPanel, I can't redirect from a panel to another> > > > panel, if this problem can handle more easier?
-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] If the wicket examples' library can put into a TabbedPanel

2006-09-24 Thread deafwolf
Thank you for your advice, I understand your means.
As you wirte, it need some special code, so it looks a little complex,
but if the helper class has been created, it will become more easier.

I can't find the method getContentPanel() from whole wicket1.2's source code,
so I dicide to let the page hold a panel property, then the replace
will be easily.

deafwolf

> 1) write all your screens using panels not pages
> 2) create a container page that hosts the panel
> 3) instead of using links to navigate to pages using setResponsePage(Page)
> you instead call getPage().getContentPanel().replaceWith(new
> MyNewPanel(...));
>
> and thats it
>
> but you really wont gain that much because page refreshes happen all the
> time and the overhead of adding your mainNavigation component to every page
> is most likely negligible.
>
> now the improvement you can get is if you always use ajax links and replace
> the panel that way. that means your mainnavigation/header/footer are only
> rendered once and that is where you can maybe see some improvement. but i
> would really profile this and see if it makes a significant difference for
> you.
>
> -Igor
>
> >
> > Thank you for your help.
> >
> > I had known the markup inheritance like the WicketExamplePage,
> > but the tag  will be add each page.
> >
> > If use TabbedPanel, I only to care the panel page's markup,
> > I ask if can redirect a panel to another panel,
> > only to avoid markup inheritance.
> > I like panel combination more, how can wicket do this?
> >
> > deafwolf
> >
> > > if you just want to have to same header and navigation on multiply pages
> > > you could use markup inheritance
> > > So have a base page with the header and navigation
> > > and then extend that page.
> > >
> > > johan
> > >
> > >
> > > On 9/22/06, dragon deaf <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hello,
> > > >
> > > > In the wicket examples there's a library example, if I can put it into
> > > > a TabbedPanel?
> > > >
> > > > I need some pages, these pages have the same header and navigation, if
> > > > use TabbedPanel, I needn't to add the header each page, and it looks
> > > > like use the frame.
> > > >
> > > > But if use the TabbedPanel, I can't redirect from a panel to another
> > > > panel, if this problem can handle more easier?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] If the wicket examples' library can put into a TabbedPanel

2006-09-22 Thread Igor Vaynberg
1) write all your screens using panels not pages2) create a container page that hosts the panel3) instead of using links to navigate to pages using setResponsePage(Page) you instead call getPage().getContentPanel().replaceWith(new MyNewPanel(...));
and thats itbut you really wont gain that much because page refreshes happen all the time and the overhead of adding your mainNavigation component to every page is most likely negligible.now the improvement you can get is if you always use ajax links and replace the panel that way. that means your mainnavigation/header/footer are only rendered once and that is where you can maybe see some improvement. but i would really profile this and see if it makes a significant difference for you.
-IgorOn 9/22/06, deafwolf <[EMAIL PROTECTED]> wrote:
Thank you for your help.I had known the markup inheritance like the WicketExamplePage,but the tag  will be add each page.If use TabbedPanel, I only to care the panel page's markup,
I ask if can redirect a panel to another panel,only to avoid markup inheritance.I like panel combination more, how can wicket do this?deafwolf> Date: Fri, 22 Sep 2006 14:12:13 +0200> From: "Johan Compagner" <
[EMAIL PROTECTED]>> Subject: Re: [Wicket-user] If the wicket examples' library can put>into a  TabbedPanel> To: 
wicket-user@lists.sourceforge.net> Message-ID: <[EMAIL PROTECTED]>> Content-Type: text/plain; charset="iso-8859-1"
>> if you just want to have to same header and navigation on multiply pages> you could use markup inheritance> So have a base page with the header and navigation> and then extend that page.
>> johan>>> On 9/22/06, dragon deaf <[EMAIL PROTECTED]> wrote:> >> > Hello,> >> > In the wicket examples there's a library example, if I can put it into
> > a TabbedPanel?> >> > I need some pages, these pages have the same header and navigation, if> > use TabbedPanel, I needn't to add the header each page, and it looks> > like use the frame.
> >> > But if use the TabbedPanel, I can't redirect from a panel to another> > panel, if this problem can handle more easier?> >-
Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] If the wicket examples' library can put into a TabbedPanel

2006-09-22 Thread deafwolf
Thank you for your help.

I had known the markup inheritance like the WicketExamplePage,
but the tag  will be add each page.

If use TabbedPanel, I only to care the panel page's markup,
I ask if can redirect a panel to another panel,
only to avoid markup inheritance.
I like panel combination more, how can wicket do this?

deafwolf

> Date: Fri, 22 Sep 2006 14:12:13 +0200
> From: "Johan Compagner" <[EMAIL PROTECTED]>
> Subject: Re: [Wicket-user] If the wicket examples' library can put
>into a  TabbedPanel
> To: wicket-user@lists.sourceforge.net
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> if you just want to have to same header and navigation on multiply pages
> you could use markup inheritance
> So have a base page with the header and navigation
> and then extend that page.
>
> johan
>
>
> On 9/22/06, dragon deaf <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > In the wicket examples there's a library example, if I can put it into
> > a TabbedPanel?
> >
> > I need some pages, these pages have the same header and navigation, if
> > use TabbedPanel, I needn't to add the header each page, and it looks
> > like use the frame.
> >
> > But if use the TabbedPanel, I can't redirect from a panel to another
> > panel, if this problem can handle more easier?
> >

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] If the wicket examples' library can put into a TabbedPanel

2006-09-22 Thread Johan Compagner
if you just want to have to same header and navigation on multiply pagesyou could use markup inheritanceSo have a base page with the header and navigationand then extend that page.johan
On 9/22/06, dragon deaf <[EMAIL PROTECTED]> wrote:
Hello,In the wicket examples there's a library example, if I can put it intoa TabbedPanel?I need some pages, these pages have the same header and navigation, ifuse TabbedPanel, I needn't to add the header each page, and it looks
like use the frame.But if use the TabbedPanel, I can't redirect from a panel to anotherpanel, if this problem can handle more easier?-
Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] If the wicket examples' library can put into a TabbedPanel

2006-09-22 Thread dragon deaf
Hello,

In the wicket examples there's a library example, if I can put it into
a TabbedPanel?

I need some pages, these pages have the same header and navigation, if
use TabbedPanel, I needn't to add the header each page, and it looks
like use the frame.

But if use the TabbedPanel, I can't redirect from a panel to another
panel, if this problem can handle more easier?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user