You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Tomáš Mihok <to...@cnl.tuke.sk> on 2009/05/11 12:31:57 UTC

Tabs & panels

Hi there,

I would like to aks a question and I believe someone has ever 
encountered the same problem. I have a page with tabbed panel and every 
tab contains a different panel - module, plugin, whatever. The problem 
is that the guy who is creating a module to this application, needs to 
switch between various pages (this means that his plugin contains more 
than one page). So finally the question:

Is it possible to navigate more pages in one panel under one tab?

tm

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Tabs & panels

Posted by Igor Vaynberg <ig...@gmail.com>.
the guy writing the modle can create multiple panels and navigate
between them by replacing them with each other.

eg

class panel2 extends panel {}

class panel1 extends panel {
  public panel1(string id) {
     add(new link("gotopanel2") { onclick() { gotopanel2(); }});
  }

  private void gotopanel2() {
    replacewith(new panel2(getid(), getmodel());
  }
}

and you are off to the races.

-igor

2009/5/11 Tomáš Mihok <to...@cnl.tuke.sk>:
> Hi there,
>
> I would like to aks a question and I believe someone has ever encountered
> the same problem. I have a page with tabbed panel and every tab contains a
> different panel - module, plugin, whatever. The problem is that the guy who
> is creating a module to this application, needs to switch between various
> pages (this means that his plugin contains more than one page). So finally
> the question:
>
> Is it possible to navigate more pages in one panel under one tab?
>
> tm
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org