Hey Raindog, 2010/12/12 Raindog <[email protected]>
> On 10/29/2010 12:54 AM, Koen Deforche wrote: > > Hey, > > > > 2010/10/29 Raindog<[email protected]>: > > > Hello, > > > > > > I have a tab widget that controls site navigation, however, whenever I > > > click a tab, then I refresh my browser, it will append the tab name to > > > the URL, so if I have: > > > > > > localhost/#/test > > > > > > I press refresh then click the test tab again, i get > > > > > > localhost/#/test/test > > > > > > How can I solve this>? > > > > Have you fixed the WTabWidget base URL ? By default it will take the > > current URL which explains this behaviour. > > > > e.g.: Wt::WTabWidget::setInternalBasePath("/"); > > > > Regards, > > koen > > > > > > > > Yes, I tried that, but it created a different problem, that being that > whenever i click a tab, it doesn't switch tabs or modify the URL unless > I click on the first tab, however when I click on the first tab, it > gives me an error from WMenu: "unknown path: "..". Any suggestions? > It seems that you does not assign paths to tabs. You should do it this way: WTabWidget* tw = new WTabWidget; tw->setInternalPathEnabled(); tw->addTab(..)->setPathComponent("tab1"); tw->addTab(..)->setPathComponent("tab2"); ... > > > ------------------------------------------------------------------------------ > Oracle to DB2 Conversion Guide: Learn learn about native support for > PL/SQL, > new data types, scalar functions, improved concurrency, built-in packages, > OCI, SQL*Plus, data movement tools, best practices and more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > witty-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/witty-interest > -- // Dmitriy.
------------------------------------------------------------------------------ Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev
_______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
