Hey, Can you post a test case ?
2010/12/13 Raindog <[email protected]> > On 12/12/2010 1:57 AM, Dmitriy Igrishin wrote: > > Hey Raindog, > > > > 2010/12/12 Raindog <[email protected] > > <mailto:[email protected]>> > > > > On 10/29/2010 12:54 AM, Koen Deforche wrote: > > > Hey, > > > > > > 2010/10/29 Raindog<[email protected] > > <mailto:[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"); > > ... > > > > I had something like that at one point also, however I seem to be having > an issue that is perhaps the root cause of the problem, I have this in > my error log: > > [2010-Dec-12 14:13:23.004096] 128 [/news 814a9sDvbfUV9LWj] [error] > "Error during event handling: bad lexical cast: source type value could > not be interpreted as target" > [2010-Dec-12 14:13:23.004096] 128 [/news 814a9sDvbfUV9LWj] [fatal] "bad > lexical cast: source type value could not be interpreted as target" > 127.0.0.1 - - [2010-Dec-12 14:13:23.005096] "POST > /news?wtd=814a9sDvbfUV9LWj&rand=63121 HTTP/1.1" 200 174 > > > It's strange because the content of the tabs work fine without > setInternalPathEnabled, but I really would like people to be able to use > the history navigation features of their browser. > > > > ------------------------------------------------------------------------------ > 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
