You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by rtow <rt...@yahoo.com> on 2008/05/09 23:42:18 UTC

Jump to tab in tabbed panel dynamically

hi,

I have a tab just like "Tabbed Panel Example: demonstrates ajax enabled
tabbed panel "

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);
            }
        });

When comes to this page, it always goes to the first tab.  Is it a way to
dynamically goes to other tab?

thanks!
rtow
-- 
View this message in context: http://www.nabble.com/Jump-to-tab-in-tabbed-panel-dynamically-tp17156868p17156868.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: Jump to tab in tabbed panel dynamically

Posted by Scott Swank <sc...@gmail.com>.
TabbedPanel.setSelectedTab(zeroBasedIndex)

On Fri, May 9, 2008 at 2:42 PM, rtow <rt...@yahoo.com> wrote:
>
>  hi,
>
>  I have a tab just like "Tabbed Panel Example: demonstrates ajax enabled
>  tabbed panel "
>
>  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);
>             }
>         });
>
>  When comes to this page, it always goes to the first tab.  Is it a way to
>  dynamically goes to other tab?
>
>  thanks!
>  rtow
>  --
>  View this message in context: http://www.nabble.com/Jump-to-tab-in-tabbed-panel-dynamically-tp17156868p17156868.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
>
>

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