Bug #216

[ WCalendar and Wt::Ext::Calendar ] j103 is null, code: undefined, description: undefined

Added by Anonymous 9 months ago. Updated 6 months ago.

Status:Closed Start:12/08/2009
Priority:Normal Due date:
Assigned to:Koen Deforche % Done:

0%

Category:-
Target version:-

Description

After clicking on Calendar widgets ( Both Wt:: and Ext:: versions ) couple of times

I get this error:

Wt internal error: TypeError: j103 is null, code: undefined, description: undefined

I would submit the whole project, but unfortunately , it is quite big :)

Regs,
Dushan Savich

output.txt (2.4 KB) Dushan Savich, 12/13/2009 11:43 am

History

Updated by Koen Deforche 9 months ago

  • Status changed from New to Assigned
  • Assigned to set to Pieter Libin

Dushan,

any more suggestions on where to look?
Do you get it on all browsers or only specific ones?

If possible, can you get a JavaScript stacktrace when setting debugging of <debug>true</debug> in wt_config.xml ?

Thanks,
koen

Updated by Koen Deforche 9 months ago

  • Assigned to changed from Pieter Libin to Koen Deforche

Updated by Dushan Savich 9 months ago

dule@dule-desktop:~/stylet/projects/webace/current/Debug$ ./webace --http-address=0.0.0.0 --http-port=8080 --docroot=. > output.txt

and I've set
&lt;enable-debug&gt;true&lt;/enable-debug&gt;

The stack trace is in the output.txt file.

The server OS: is Ubuntu ( Some animal ) 9.04 .
Client OS: Ubuntu

Browsers: Firefox 3.5.3 , Opera 10., Konqueror and IE6

Boost version is 1.37 and the Wt is the current one found on SourceForge

Btw, this bug doesn't seem to appear on Windows XP under any browser.

Updated by Dushan Savich 9 months ago

It seems that it is not a Calendar bug after all ..
It's all about what Calendar triggers ...
I've narrowed it down to a WBoxLayout full of images which are repopulated whenever the date changes ...

This is the line which triggers the bug :


   *delete* wvBoxLayout_;  
   wvBoxLayout_ = *new* Wt::WVBoxLayout();

_   ///... add images for the date ... ///_

//My intention was to clear all images along with boxLayout, in order to

Updated by Dushan Savich 9 months ago

My intention was to clear all images along with boxLayout, in order to in order not to be bothered with removing child images manually ..

I've noticed that similar thing happens when I delete Ext::TabWiget in the same event

Updated by Koen Deforche 9 months ago

Dushan Savich wrote:

My intention was to clear all images along with boxLayout, in order to in order not to be bothered with removing child images manually ..

I've noticed that similar thing happens when I delete Ext::TabWiget in the same event

Okay, I've found the following in the 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.

The workaround is to use WContainerWidget::clear() which first deletes all children, and then calls clear.

This FIXME requires a FIX or at least a big fat warning in the documentation...

Thanks for chasing this down!

Updated by Koen Deforche 8 months ago

  • Status changed from Assigned to Resolved

Now you can delete a layout, and replace it with another layout.

Updated by Koen Deforche 6 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF