Hi martin,
this is my code.
now i have to insert separate page for each tab.
these pages includes one for data grid and one page for ajax example ane
page for component.
shall we insert a page in to the tab?is it possible?if so tell me how to do
it.
i used setResponsePage();but it shows error that markup file is not found.
please tell me the code. am debut to wicket
how can i do this
public class TabbedPanelPage extends WebPage
{
 public TabbedPanelPage()
 {
  List tabs = new ArrayList();
  tabs.add(new AbstractTab(new Model("first tab"))
  {
   public Panel getPanel(String panelId)
   {
    return new TabPanel1(panelId);
   }
  });

  tabs.add(new AbstractTab(new Model("second tab"))
  {
   public Panel getPanel(String panelId)
   {
    return new TabPanel2(panelId);
   }
  });

  tabs.add(new AbstractTab(new Model("third tab"))
  {
   public Panel getPanel(String panelId)
   {
    return new TabPanel3(panelId);
   }
  });

  add(new TabbedPanel("tabs", tabs));
 }

 private static class TabPanel1 extends Panel
 {

  public TabPanel1(String id)
  {
      super(id);


  }
 };

 private static class TabPanel2 extends Panel
 {
  public TabPanel2(String id)
  {
   super(id);
  }
 };
 private static class TabPanel3 extends Panel
 {
  public TabPanel3(String id)
  {
   super(id);
  }
 };
}

On Mon, Jul 20, 2009 at 3:58 PM, Martin Makundi <
[email protected]> wrote:

> Copy-paste the example from the web and replace the one panel with a grid.
>
> **
> Martin
>
> 2009/7/20 Gerald Fernando <[email protected]>:
> > yes i mean it.am debut to wicket.how can i achive it
> > please help me
> > my requirement is
> >  when i click first tab it should shows a Grid
> >> 2nd tab - panel
> >> 3rd tab - another componet
> >> 4th tab - Another componet
> >
> >
> > On Mon, Jul 20, 2009 at 11:35 AM, Martin Makundi <
> > [email protected]> wrote:
> >
> >> You mean wicket TabbedPanel component?
> >>
> >>
> >>
> http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.TabbedPanelPage
> >>
> >> **
> >> Martin
> >>
> >> 2009/7/20 Gerald Fernando <[email protected]>:
> >>  > Hello Friends,
> >> > How can i do tab panel with child coponent.
> >> > when i click first tab it should shows a Grid
> >> > 2nd tab - panel
> >> > 3rd tab - another componet
> >> > 4th tab - Another componet
> >> >
> >> > how can i achieve this?
> >> > if possible give me some model code
> >> >
> >> > --
> >> > Thanks&regards,
> >> > Gerald A
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> >
> >
> > --
> > Thanks&regards,
> > Gerald A
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Thanks&regards,
Gerald A

Reply via email to