There seems to be a bug in the implementation of closeable tabs in current snapshots of Smart Client. To reproduce, try the following:
* Run start_embedded_server.sh
* Browse to http://localhost:8080/isomorphic/system/reference/SmartClient_Explorer.html#closeableTabs
* Click on the "Green" tab
* Click on the "Remove Tab" button
The "Green" tab disappears, but so does the image in the "Blue" tab. Firebug displays the following error message:
_3 is undefined
http://localhost:8080/isomorphic/system/modules/ISC_Containers.js?isc_version=SC_SNAPSHOT-2010-05-29.js
Line 365
The Smart Client Developer Console displays the message
23:56:31.589:MUP9:WARN:Log:TypeError: Cannot read property 'tabDeselected' of undefined
The error happens with Firefox 3.6.3 and with Chrome 5.0.375.55 on Fedora 13, and with both the evaluation and the LGPL versions of Smart Client. It does not happen with 7.0rc2. The same error also happens in other applications; it is triggered if (and only if) the rightmost tab in a TabSet is closed. In that case all other tabs in the TabSet stay blank until a new tab is created.
What is the preferred way to debug these kinds of errors in Smart Client? Figuring out which source file corresponds to the compressed code that triggered the error (by grepping the source tree, etc.) seems, well, not particularly efficient. I'm tempted to write a script that loads the non-compressed source code from the smartclientSDK/source folder during development and the compressed files for deployment and testing. But before spending time on a possibly mistaken (or even impossible) approach I'd be interested how the experts here do it, and whether there is any ready-made solution available.
* Run start_embedded_server.sh
* Browse to http://localhost:8080/isomorphic/system/reference/SmartClient_Explorer.html#closeableTabs
* Click on the "Green" tab
* Click on the "Remove Tab" button
The "Green" tab disappears, but so does the image in the "Blue" tab. Firebug displays the following error message:
_3 is undefined
http://localhost:8080/isomorphic/system/modules/ISC_Containers.js?isc_version=SC_SNAPSHOT-2010-05-29.js
Line 365
The Smart Client Developer Console displays the message
23:56:31.589:MUP9:WARN:Log:TypeError: Cannot read property 'tabDeselected' of undefined
The error happens with Firefox 3.6.3 and with Chrome 5.0.375.55 on Fedora 13, and with both the evaluation and the LGPL versions of Smart Client. It does not happen with 7.0rc2. The same error also happens in other applications; it is triggered if (and only if) the rightmost tab in a TabSet is closed. In that case all other tabs in the TabSet stay blank until a new tab is created.
What is the preferred way to debug these kinds of errors in Smart Client? Figuring out which source file corresponds to the compressed code that triggered the error (by grepping the source tree, etc.) seems, well, not particularly efficient. I'm tempted to write a script that loads the non-compressed source code from the smartclientSDK/source folder during development and the compressed files for deployment and testing. But before spending time on a possibly mistaken (or even impossible) approach I'd be interested how the experts here do it, and whether there is any ready-made solution available.
Comment