Project

General

Profile

extjs doesn't work

Added by axel stelter over 14 years ago

when i try to add an

WPushButton via addWidget to a WVBoxLayout

the button is shown

and when i try to add an Ext::Button

it doesn't work

Ext itself work's fine

a Ext::MessageBox forexample pops up without any problems.

another example:

if i add WText("Your name, please ? "); to

Wt::Ext::Container(root());

with a Wt::WBorderLayout();

i get this:

Your name, please ?

can anyone tell me what i'm doing wrong?

thanks for your help


Replies (5)

RE: extjs doesn't work - Added by Koen Deforche over 14 years ago

What version of Wt are you using? We have seen some problems with ExtJS with git versions of the last weeks, which should be fixed now.

The following example works for me:

#include <Wt/WApplication>
#include <Wt/WContainerWidget>
#include <Wt/WStackedWidget>
#include <Wt/Ext/Panel>
#include <Wt/Ext/Button>
#include <Wt/WVBoxLayout>
#include <Wt/WFitLayout>

using namespace Wt;

class TestApp : public WApplication
{
public:
  TestApp(const WEnvironment& env)
  : WApplication(env)
  {
    WVBoxLayout *topLevelLayout = new WVBoxLayout(root());

    topLevelLayout->addWidget(new Ext::Button("Hello"));
  }

private:
};

WApplication *createApplication(const WEnvironment& env)
{
  TestApp *app = new TestApp(env);

  return app;
}

int main(int argc, char *argv[])
{
  return WRun(argc, argv, &createApplication);
}

RE: extjs doesn't work - Added by axel stelter over 14 years ago

i used the versions 3.0.0, 2.99.5 and the last version from the git respository

and none of them works for me.

i also tried your example, but i doesn't show a button.

(i added the id: "test" to the button) but my html output looks like this:

div id="test" style="height: 141px;"/>

Loading...

i linked all neccessary libs to the application

wtd.lib

wthttpd.lib

wtext.lib

and my windows command shell says that everey

get-command (i.e. ext-base.js, ext-all.js) returns 200 or 304

so this should be ok

so i dont't know where i made i mistake

(environment, compiling wt, missing parameters, etc )

RE: extjs doesn't work - Added by Koen Deforche over 14 years ago

Hey,

We are bitten by a common culprit! You probably have the progressive bootstrap enabled: do you have a wt_config.xml file, and if so, can you disable progressive-bootstrap?

The combination ExtJS and progressive-bootstrap does not make alot of sense (but still, it should work though, so it is a bug).

Regards,

koen

RE: extjs doesn't work - Added by axel stelter over 14 years ago

wow that was fast ;-)

thank you

i will try this immediatly

RE: extjs doesn't work - Added by axel stelter over 14 years ago

yes

i changed progressive-bootstrap to false

and now it works

thank you very much

    (1-5/5)