On 7/18/07, Jeff Pierce <[EMAIL PROTECTED]> wrote:
>
> I am new to Wicket and just getting my feet wet and looking for some
> advice.  I have an app I am building that contains a main row of Ajax tabs
> across the top.   Each tab's panel will have the following layout.  A set
> of
> menu's on the left and a set of tabs on the right for part of its content
> area.  I want the menu's to be Ajax links and the tabs to be Ajax tabs.
> When the user clicks on a menu choice, the content area should reload with
> a
> different set of ajax tabs.
>
> My question is what is the best way to hookup the ajax links to change the
> portion of the page that contains content area which includes a different
> set of tabs depending on the menu choice (stuff in red below)?  I have the
> tabs and subtabs loading OK, but not sure how to go about hooking up the
> ajax menu choices to change the subtab panel.
>
> Here's the basic layout:
>
> ---------------------------------------------------------
> Page header area
> ---------------------------------------------------------
> | *MainTab1* | MainTab2 |
> ---------------------------------------------------------
> |*Menu1* |
> | Menu2  |    | *Menu1Subtab1* |Menu1Subtab2|
> | Menu3  |    |----------------------------------------
> | Menu4  |    |
> |        |    |  <Menu1Subtab1 Tab panel Content Area>
> |        |
> ---------------------------------------------------------
> Page footer area
> ---------------------------------------------------------


you have to replace the entire tabbedpanel that holds the menu1subtab links.

so menu1link.onclick(target) {
ajaxtabbedpanel newone=new menu1tabbedpanel(...);
menutabbedpanel.replacewith(newone);
menutabbedpanel=newone;
target.addcomponent(newone);
}

-igor




Thanks
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to