http://redmine.emweb.be/http://redmine.emweb.be/favicon.ico?16934085252009-12-10T11:19:46ZRedmineWt - Bug #216: [ WCalendar and Wt::Ext::Calendar ] j103 is null, code: undefined, description: undefinedhttp://redmine.emweb.be/issues/216?journal_id=5832009-12-10T11:19:46ZKoen Deforchekoen@emweb.be
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>InProgress</i></li><li><strong>Assignee</strong> set to <i>Pieter Libin</i></li></ul><p>Dushan,</p>
<p>any more suggestions on where to look?<br><br>
Do you get it on all browsers or only specific ones?</p>
<p>If possible, can you get a JavaScript stacktrace when setting debugging of true in wt_config.xml ?</p>
<p>Thanks,<br><br>
koen</p>
Wt - Bug #216: [ WCalendar and Wt::Ext::Calendar ] j103 is null, code: undefined, description: undefinedhttp://redmine.emweb.be/issues/216?journal_id=5842009-12-10T11:19:53ZKoen Deforchekoen@emweb.be
<ul><li><strong>Assignee</strong> changed from <i>Pieter Libin</i> to <i>Koen Deforche</i></li></ul> Wt - Bug #216: [ WCalendar and Wt::Ext::Calendar ] j103 is null, code: undefined, description: undefinedhttp://redmine.emweb.be/issues/216?journal_id=5922009-12-13T10:43:21ZDushan Savichdushansavich@yahoo.com
<ul><li><strong>File</strong> <a href="/attachments/45">output.txt</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/45/output.txt">output.txt</a> added</li></ul><p>dule@dule-desktop:~/stylet/projects/webace/current/Debug$ ./webace ---http-address=0.0.0.0 ---http-port=8080 ---docroot=. > output.txt</p>
<p>and I've set</p>
<p>true</p>
<p>The stack trace is in the output.txt file.</p>
<p>The server OS: is Ubuntu ( Some animal ) 9.04 .<br><br>
Client OS: Ubuntu</p>
<p>Browsers: Firefox 3.5.3 , Opera 10., Konqueror and IE6</p>
<p>Boost version is 1.37 and the Wt is the current one found on SourceForge</p>
<p>Btw, this bug doesn't seem to appear on Windows XP under any browser.</p>
Wt - Bug #216: [ WCalendar and Wt::Ext::Calendar ] j103 is null, code: undefined, description: undefinedhttp://redmine.emweb.be/issues/216?journal_id=6002009-12-14T14:38:10ZDushan Savichdushansavich@yahoo.com
<ul></ul><p>It seems that it is not a Calendar bug after all ..<br><br>
It's all about what Calendar triggers ...<br><br>
I've narrowed it down to a WBoxLayout full of images which are repopulated whenever the date changes ...</p>
<p>This is the line which triggers the bug :</p>
<pre><code> *delete* wvBoxLayout_;
wvBoxLayout_ = *new* Wt::WVBoxLayout();
_ ///... add images for the date ... ///_
</code></pre>
<p>//My intention was to clear all images along with boxLayout, in order to</p>
Wt - Bug #216: [ WCalendar and Wt::Ext::Calendar ] j103 is null, code: undefined, description: undefinedhttp://redmine.emweb.be/issues/216?journal_id=6012009-12-14T14:40:34ZDushan Savichdushansavich@yahoo.com
<ul></ul><p>My intention was to clear all images along with boxLayout, in order to in order not to be bothered with removing child images manually ..</p>
<p>I've noticed that similar thing happens when I delete Ext::TabWiget in the same event</p>
Wt - Bug #216: [ WCalendar and Wt::Ext::Calendar ] j103 is null, code: undefined, description: undefinedhttp://redmine.emweb.be/issues/216?journal_id=6132009-12-17T14:49:07ZKoen Deforchekoen@emweb.be
<ul></ul><p>Dushan Savich wrote: </p>
<blockquote>
<p>My intention was to clear all images along with boxLayout, in order to in order not to be bothered with removing child images manually .. </p>
<p>I've noticed that similar thing happens when I delete Ext::TabWiget in the same event</p>
</blockquote>
<p>Okay, I've found the following in the code:</p>
<pre><code> // FIXME: we do not support deleting the layout_ without deleting all
// children _FIRST_, since deleting the layout automatically removes the
// children too in the DOM.
</code></pre>
<p>The workaround is to use WContainerWidget::clear() which first deletes all children, and then calls clear.</p>
<p>This FIXME requires a FIX or at least a big fat warning in the documentation...</p>
<p>Thanks for chasing this down!</p>
Wt - Bug #216: [ WCalendar and Wt::Ext::Calendar ] j103 is null, code: undefined, description: undefinedhttp://redmine.emweb.be/issues/216?journal_id=6602010-01-04T15:07:45ZKoen Deforchekoen@emweb.be
<ul><li><strong>Status</strong> changed from <i>InProgress</i> to <i>Resolved</i></li></ul><p>Now you can delete a layout, and replace it with another layout.</p>
Wt - Bug #216: [ WCalendar and Wt::Ext::Calendar ] j103 is null, code: undefined, description: undefinedhttp://redmine.emweb.be/issues/216?journal_id=7152010-03-02T11:38:10ZKoen Deforchekoen@emweb.be
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>