Project

General

Profile

nothing displayed in browser window

Added by First Last about 9 years ago

After an upgrade to 3.3.4+dfsg-3 (current debian testing), there is no visible content (and no child nodes to the body element except script/noscript, stylesheet-link and the hidden history input) in the browser. I tried breaking it down to a minimal example (see attachment). Is there anything that changed to the new version that I did not notice, or is this a bug?

Does this work on your system?

I compile with

g++ -o wttest -std=c++11 wttest.cpp -lwt -lwthttp

and run with

./wttest --docroot=/usr/share/Wt/ --http-address=localhost --http-port=8080
wttest.cpp (408 Bytes) wttest.cpp Minimal example

Replies (3)

RE: nothing displayed in browser window - Added by First Last about 9 years ago

Oops, forgot the new ... ->facepalm

Does not change the problem, however. Neither of those two work:

    new Wt::WText("some text",root());
    root()->addWidget(new Wt::WText("some text"));

RE: nothing displayed in browser window - Added by Stefan Arndt about 9 years ago

Hi,

works fine on my side. Do you still experience the issue?

#include <Wt/WApplication>
#include <Wt/WContainerWidget>
#include <Wt/WText>

class Application : public Wt::WApplication
{
  public:

    Application(const Wt::WEnvironment& environment)
      : Wt::WApplication(environment)
    {
      new Wt::WText("some other text", root());
      root()->addWidget(new Wt::WText("some text"));
    }
};

int main(int argc, char **argv)
{
  Wt::WRun(argc,argv,[&](const Wt::WEnvironment &env){return new Application(env);});
}

RE: nothing displayed in browser window - Added by First Last about 9 years ago

Yes. It seems to be a javascript problem. I think the same issue was also presented in the "open discussion" board at http://redmine.webtoolkit.eu/boards/1/topics/11257 (I didn't check that when I posted here).

    (1-3/3)