You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Gerald Fernando <ge...@gmail.com> on 2009/07/20 08:00:37 UTC

Tab panel child

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

Re: Tab panel child

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!

Are you at all familiar with Java? If yes, it's quite straight
forward. If not... just copy paste the example and make your changes
there. Probably you need some experienced person for pair programming,
few hours.

**
Martin

2009/7/21 Gerald Fernando <ge...@gmail.com>:
> Hi martin,
> sorry to say that can you please give me elobrate please
>
> Thanks&Regards,
> Gerald A
>
> On Tue, Jul 21, 2009 at 12:39 PM, Martin Makundi <
> martin.makundi@koodaripalvelut.com> wrote:
>
>> > then how can reuse it in another page???
>>
>> Panel can be put anywhere. You can put Panel into Page or Panel into
>> AnotherPanel and so on.
>>
>> TabPanel1
>> |
>> +---- add(new GridPanel());
>>
>> AntoherPanel
>> |
>> +---- add(new GridPanel());
>>
>> SomePage
>> |
>> +---- add(new GridPanel());
>>
>> > can you compare Adobe Flex and Apache wicket.
>>
>> They have nothing in common.
>>
>> > am Expecting your reply
>>
>> Hope this helps.
>>
>> **
>> Martin
>>
>> >
>> > On Tue, Jul 21, 2009 at 11:52 AM, Martin Makundi <
>> > martin.makundi@koodaripalvelut.com> wrote:
>> >
>> >> Hi!
>> >>
>> >> No, not page into tab. Just panel. Here TabPanel1...3 are your grid,
>> >> etc. content panels. Into the content panel you put the grid or
>> >> whatever you want.
>> >>
>> >> **
>> >> Martin
>> >>
>> >> 2009/7/21 Gerald Fernando <ge...@gmail.com>:
>> >>  > 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 <
>> >> > martin.makundi@koodaripalvelut.com> wrote:
>> >> >
>> >> >> Copy-paste the example from the web and replace the one panel with a
>> >> grid.
>> >> >>
>> >> >> **
>> >> >> Martin
>> >> >>
>> >> >> 2009/7/20 Gerald Fernando <ge...@gmail.com>:
>> >> >> > 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 <
>> >> >> > martin.makundi@koodaripalvelut.com> 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 <ge...@gmail.com>:
>> >> >> >>  > 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: users-unsubscribe@wicket.apache.org
>> >> >> >> For additional commands, e-mail: users-help@wicket.apache.org
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > Thanks&regards,
>> >> >> > Gerald A
>> >> >> >
>> >> >>
>> >> >> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >> >> For additional commands, e-mail: users-help@wicket.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> > --
>> >> > Thanks&regards,
>> >> > Gerald A
>> >> >
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >> For additional commands, e-mail: users-help@wicket.apache.org
>> >>
>> >>
>> >
>> >
>> > --
>> > Thanks&regards,
>> > Gerald A
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
> --
> Thanks&regards,
> Gerald A
>

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


Re: Tab panel child

Posted by Marcin Palka <ma...@gmail.com>.
Gerald,

My example quickstart project is maven based. So I would suggest to use
maven to compile it. If your're a beginner I would highly recommend that you
download and use a Netbeans IDE (from http://www.netbeans.org) which has a
built-in maven project support.  Open the project from the IDE and then you
should be able to build and run it with a single button click.

cheers,
Marcin


MartinM wrote:
> 
> And change compiler syntax....
> 
> **
> Martin
> 
> 2009/7/21 Marcin Palka <ma...@gmail.com>:
>>
>> Gerald,
>>
>> You have to use Java version 5. Earlier versions don't support generics.
>> I
>> believe Wicket 1.4 requires Java 5.
>>
>> cheers
>> Marcin
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Tab-panel-child-tp24564353p24586192.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Tab panel child

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
And change compiler syntax....

**
Martin

2009/7/21 Marcin Palka <ma...@gmail.com>:
>
> Gerald,
>
> You have to use Java version 5. Earlier versions don't support generics. I
> believe Wicket 1.4 requires Java 5.
>
> cheers
> Marcin
>
>

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


Re: Tab panel child

Posted by Marcin Palka <ma...@gmail.com>.
Gerald, 

You have to use Java version 5. Earlier versions don't support generics. I
believe Wicket 1.4 requires Java 5.

cheers
Marcin


Gerald Fernando wrote:
> 
> Hi marchin,
> in your code
> 
> 
> HashMap<String, Panel> tabMap = new HashMap<String, Panel>(); - this is a
> line which shows error
> 
> there is is error such as
> 
> Parameterized types are only avilable if source level is 5.
> what is this error how can i solve it?
> 
> Thanks&Regards,
> Gerald A
> 
> 
> 
> On Tue, Jul 21, 2009 at 3:30 PM, Marcin Palka
> <ma...@gmail.com>wrote:
> 
>>
>> See an example in the attached file. It should be quite easy to
>> understand.
>> The example consists of two pages. First of them contains a tabbed panel
>> with three tabs. Each of them contains a panel (an instance of the same
>> panel class). The the same panel is embedded outside the tabbed panel
>> into
>> a
>> page contents directly. Another page contains the same panel embedded
>> once
>> again.
>>
>> http://www.nabble.com/file/p24584839/TabsExample.zip TabsExample.zip
>>
>> cheers,
>> Marcin
>> --
>> View this message in context:
>> http://www.nabble.com/Tab-panel-child-tp24564353p24584839.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
> 
> 
> -- 
> Thanks&regards,
> Gerald A
> 
> 

-- 
View this message in context: http://www.nabble.com/Tab-panel-child-tp24564353p24586058.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Tab panel child

Posted by Gerald Fernando <ge...@gmail.com>.
Hi marchin,
in your code


HashMap<String, Panel> tabMap = new HashMap<String, Panel>(); - this is a
line which shows error

there is is error such as

Parameterized types are only avilable if source level is 5.
what is this error how can i solve it?

Thanks&Regards,
Gerald A



On Tue, Jul 21, 2009 at 3:30 PM, Marcin Palka <ma...@gmail.com>wrote:

>
> See an example in the attached file. It should be quite easy to understand.
> The example consists of two pages. First of them contains a tabbed panel
> with three tabs. Each of them contains a panel (an instance of the same
> panel class). The the same panel is embedded outside the tabbed panel into
> a
> page contents directly. Another page contains the same panel embedded once
> again.
>
> http://www.nabble.com/file/p24584839/TabsExample.zip TabsExample.zip
>
> cheers,
> Marcin
> --
> View this message in context:
> http://www.nabble.com/Tab-panel-child-tp24564353p24584839.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Thanks&regards,
Gerald A

Re: Tab panel child

Posted by Marcin Palka <ma...@gmail.com>.
See an example in the attached file. It should be quite easy to understand.
The example consists of two pages. First of them contains a tabbed panel
with three tabs. Each of them contains a panel (an instance of the same
panel class). The the same panel is embedded outside the tabbed panel into a
page contents directly. Another page contains the same panel embedded once
again. 

http://www.nabble.com/file/p24584839/TabsExample.zip TabsExample.zip 

cheers,
Marcin
-- 
View this message in context: http://www.nabble.com/Tab-panel-child-tp24564353p24584839.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Tab panel child

Posted by Gerald Fernando <ge...@gmail.com>.
Hi martin,
sorry to say that can you please give me elobrate please

Thanks&Regards,
Gerald A

On Tue, Jul 21, 2009 at 12:39 PM, Martin Makundi <
martin.makundi@koodaripalvelut.com> wrote:

> > then how can reuse it in another page???
>
> Panel can be put anywhere. You can put Panel into Page or Panel into
> AnotherPanel and so on.
>
> TabPanel1
> |
> +---- add(new GridPanel());
>
> AntoherPanel
> |
> +---- add(new GridPanel());
>
> SomePage
> |
> +---- add(new GridPanel());
>
> > can you compare Adobe Flex and Apache wicket.
>
> They have nothing in common.
>
> > am Expecting your reply
>
> Hope this helps.
>
> **
> Martin
>
> >
> > On Tue, Jul 21, 2009 at 11:52 AM, Martin Makundi <
> > martin.makundi@koodaripalvelut.com> wrote:
> >
> >> Hi!
> >>
> >> No, not page into tab. Just panel. Here TabPanel1...3 are your grid,
> >> etc. content panels. Into the content panel you put the grid or
> >> whatever you want.
> >>
> >> **
> >> Martin
> >>
> >> 2009/7/21 Gerald Fernando <ge...@gmail.com>:
> >>  > 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 <
> >> > martin.makundi@koodaripalvelut.com> wrote:
> >> >
> >> >> Copy-paste the example from the web and replace the one panel with a
> >> grid.
> >> >>
> >> >> **
> >> >> Martin
> >> >>
> >> >> 2009/7/20 Gerald Fernando <ge...@gmail.com>:
> >> >> > 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 <
> >> >> > martin.makundi@koodaripalvelut.com> 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 <ge...@gmail.com>:
> >> >> >>  > 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: users-unsubscribe@wicket.apache.org
> >> >> >> For additional commands, e-mail: users-help@wicket.apache.org
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Thanks&regards,
> >> >> > Gerald A
> >> >> >
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> >> For additional commands, e-mail: users-help@wicket.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > Thanks&regards,
> >> > Gerald A
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> >
> > --
> > Thanks&regards,
> > Gerald A
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Thanks&regards,
Gerald A

Re: Tab panel child

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
> then how can reuse it in another page???

Panel can be put anywhere. You can put Panel into Page or Panel into
AnotherPanel and so on.

TabPanel1
|
+---- add(new GridPanel());

AntoherPanel
|
+---- add(new GridPanel());

SomePage
|
+---- add(new GridPanel());

> can you compare Adobe Flex and Apache wicket.

They have nothing in common.

> am Expecting your reply

Hope this helps.

**
Martin

>
> On Tue, Jul 21, 2009 at 11:52 AM, Martin Makundi <
> martin.makundi@koodaripalvelut.com> wrote:
>
>> Hi!
>>
>> No, not page into tab. Just panel. Here TabPanel1...3 are your grid,
>> etc. content panels. Into the content panel you put the grid or
>> whatever you want.
>>
>> **
>> Martin
>>
>> 2009/7/21 Gerald Fernando <ge...@gmail.com>:
>>  > 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 <
>> > martin.makundi@koodaripalvelut.com> wrote:
>> >
>> >> Copy-paste the example from the web and replace the one panel with a
>> grid.
>> >>
>> >> **
>> >> Martin
>> >>
>> >> 2009/7/20 Gerald Fernando <ge...@gmail.com>:
>> >> > 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 <
>> >> > martin.makundi@koodaripalvelut.com> 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 <ge...@gmail.com>:
>> >> >>  > 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: users-unsubscribe@wicket.apache.org
>> >> >> For additional commands, e-mail: users-help@wicket.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> > --
>> >> > Thanks&regards,
>> >> > Gerald A
>> >> >
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >> For additional commands, e-mail: users-help@wicket.apache.org
>> >>
>> >>
>> >
>> >
>> > --
>> > Thanks&regards,
>> > Gerald A
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
> --
> Thanks&regards,
> Gerald A
>

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


Re: Tab panel child

Posted by Gerald Fernando <ge...@gmail.com>.
then how can reuse it in another page???
can you compare Adobe Flex and Apache wicket.
am Expecting your reply

Thanks&Regards,
Gerald A

On Tue, Jul 21, 2009 at 11:52 AM, Martin Makundi <
martin.makundi@koodaripalvelut.com> wrote:

> Hi!
>
> No, not page into tab. Just panel. Here TabPanel1...3 are your grid,
> etc. content panels. Into the content panel you put the grid or
> whatever you want.
>
> **
> Martin
>
> 2009/7/21 Gerald Fernando <ge...@gmail.com>:
>  > 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 <
> > martin.makundi@koodaripalvelut.com> wrote:
> >
> >> Copy-paste the example from the web and replace the one panel with a
> grid.
> >>
> >> **
> >> Martin
> >>
> >> 2009/7/20 Gerald Fernando <ge...@gmail.com>:
> >> > 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 <
> >> > martin.makundi@koodaripalvelut.com> 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 <ge...@gmail.com>:
> >> >>  > 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: users-unsubscribe@wicket.apache.org
> >> >> For additional commands, e-mail: users-help@wicket.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > Thanks&regards,
> >> > Gerald A
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> >
> > --
> > Thanks&regards,
> > Gerald A
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Thanks&regards,
Gerald A

Re: Tab panel child

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!

No, not page into tab. Just panel. Here TabPanel1...3 are your grid,
etc. content panels. Into the content panel you put the grid or
whatever you want.

**
Martin

2009/7/21 Gerald Fernando <ge...@gmail.com>:
> 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 <
> martin.makundi@koodaripalvelut.com> wrote:
>
>> Copy-paste the example from the web and replace the one panel with a grid.
>>
>> **
>> Martin
>>
>> 2009/7/20 Gerald Fernando <ge...@gmail.com>:
>> > 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 <
>> > martin.makundi@koodaripalvelut.com> 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 <ge...@gmail.com>:
>> >>  > 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: users-unsubscribe@wicket.apache.org
>> >> For additional commands, e-mail: users-help@wicket.apache.org
>> >>
>> >>
>> >
>> >
>> > --
>> > Thanks&regards,
>> > Gerald A
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
> --
> Thanks&regards,
> Gerald A
>

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


Re: Tab panel child

Posted by Gerald Fernando <ge...@gmail.com>.
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 <
martin.makundi@koodaripalvelut.com> wrote:

> Copy-paste the example from the web and replace the one panel with a grid.
>
> **
> Martin
>
> 2009/7/20 Gerald Fernando <ge...@gmail.com>:
> > 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 <
> > martin.makundi@koodaripalvelut.com> 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 <ge...@gmail.com>:
> >>  > 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: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> >
> > --
> > Thanks&regards,
> > Gerald A
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Thanks&regards,
Gerald A

Re: Tab panel child

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Copy-paste the example from the web and replace the one panel with a grid.

**
Martin

2009/7/20 Gerald Fernando <ge...@gmail.com>:
> 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 <
> martin.makundi@koodaripalvelut.com> 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 <ge...@gmail.com>:
>>  > 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: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
> --
> Thanks&regards,
> Gerald A
>

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


Re: Tab panel child

Posted by Gerald Fernando <ge...@gmail.com>.
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 <
martin.makundi@koodaripalvelut.com> 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 <ge...@gmail.com>:
>  > 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Thanks&regards,
Gerald A

Re: Tab panel child

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
You mean wicket TabbedPanel component?

http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.TabbedPanelPage

**
Martin

2009/7/20 Gerald Fernando <ge...@gmail.com>:
> 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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org