http://redmine.emweb.be/http://redmine.emweb.be/favicon.ico?16934085252021-02-22T07:26:25ZRedmineWt - Support #8108: Embedded widgethttp://redmine.emweb.be/issues/8108?journal_id=283932021-02-22T07:26:25ZKorneel Dumonkorneel@emweb.be
<ul></ul><p>Hi Alex,</p>
<p>have a look at the example in 'feature/widgetset'. Wt will create the JS file for you.</p>
Wt - Support #8108: Embedded widgethttp://redmine.emweb.be/issues/8108?journal_id=284542021-02-24T00:48:58ZAlex Fedorov
<ul></ul><p>Thank you, but unfortunately the short way didn't work. The example doesn't work as expected. I see no embedded widget on the HTML page. All I see is the empty frame. The application construction function registered in Widgetset entry point is not called. I also can't find "hello.js" file on my disk.<br>
Please explain what WT class/method generates the JS file. What is the location of this file? How to debug this problem (what should I check first)?</p>
Wt - Support #8108: Embedded widgethttp://redmine.emweb.be/issues/8108?journal_id=284552021-02-24T03:24:17ZAlex Fedorov
<ul></ul><p>More details:</p>
<p>I start hello console application using these parameters:<br>
"hello.exe --http-address=0.0.0.0 --http-port=8080 --deploy-path=/hello --docroot=."<br>
I can see the widget if I open browser for "<a href="http://localhost:8080/hello" class="external">http://localhost:8080/hello</a>", but see an empty box if I try to run hello.html from your example</p>
Wt - Support #8108: Embedded widgethttp://redmine.emweb.be/issues/8108?journal_id=284982021-02-24T11:16:36ZKorneel Dumonkorneel@emweb.be
<ul></ul><p>I'm not sure what is going wrong. Maybe you can use the browser debugger to check the response? The call for 'hello.js' should go to the createWidgetSet() function.</p>
Wt - Support #8108: Embedded widgethttp://redmine.emweb.be/issues/8108?journal_id=285362021-02-24T20:37:44ZAlex Fedorov
<ul></ul><p>Browser can't load JS file with this error message "Failed to load resource: net::ERR_FILE_NOT_FOUND"<br>
which means hello.js is not found.<br>
Please explain what WT class/method generates the JS file. What is the location of this file?<br>
Should I change something in server configuration parameters to see something on the webpage?</p>
Wt - Support #8108: Embedded widgethttp://redmine.emweb.be/issues/8108?journal_id=285372021-02-24T21:58:09ZAlex Fedorov
<ul></ul><p>I see the same situation like in issue opened 6 years ago: <a href="https://redmine.webtoolkit.eu/issues/3580" class="external">https://redmine.webtoolkit.eu/issues/3580</a><br>
Is there something about widgetset and localhost combination I don't know</p>
Wt - Support #8108: Embedded widgethttp://redmine.emweb.be/issues/8108?journal_id=285412021-02-25T07:41:00ZKorneel Dumonkorneel@emweb.be
<ul></ul><p>The file isn't anywhere on the filesystem, it is generated on the fly using <code>createWidgetSet()</code>.</p>
Wt - Support #8108: Embedded widgethttp://redmine.emweb.be/issues/8108?journal_id=286032021-02-26T04:26:00ZAlex Fedorov
<ul></ul><p>I found the problem solution here: <a href="https://witty-interest.narkive.com/eiZA7jY5/wt-interest-wt-interest-using-codemirror-with-wt" class="external">https://witty-interest.narkive.com/eiZA7jY5/wt-interest-wt-interest-using-codemirror-with-wt</a><br>
Thank you! Please close the issue.</p>