Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342558 - JS error when using TabFolder
Summary: JS error when using TabFolder
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.4   Edit
Hardware: PC All
: P1 critical (vote)
Target Milestone: 1.4 M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 08:45 EDT by Benjamin Wolff CLA
Modified: 2011-04-12 10:43 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Wolff CLA 2011-04-12 08:45:15 EDT
The current CVS version causes the application to crash when using the TabFolder widget.

It can be reproduced with the controls demo when selecting the "TabFolder" tab.

Here is the output of the error in the Browser:

Error: Error: Could not apply state appearance TypeError: border_top_checked.setTop is not a function

  Script: var req = org.eclipse.swt.Request.getInstance();req.setRequestCounter( "9" );var wm = org.eclipse.swt.WidgetManager.getInstance(); ...<output omitted> ...
  message: Could not apply state appearance TypeError: border_top_checked.setTop is not a function
  fileName: http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260
  lineNumber: 12409
  stack: ()@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:12409
([object Arguments])@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:6038
()@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:48420
()@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:9790
()@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:9686
([object Object])@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:49864
([object Object],(void 0))@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:7628
([object Object])@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:7585
([object Object])@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:41090
([object Object])@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:38352
([object Object],(void 0))@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:7628
([object Object])@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:7585
("completed","receiving")@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:39328
anonymous("completed")@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:5013
([object Object])@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:39180
([object Object],true)@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:7628
([object Object],true)@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:7585
("completed")@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:7515
("completed","receiving")@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:40219
anonymous("completed")@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:5013
([object Event])@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:39893
([object Event])@http://127.0.0.1:47453/rap?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-2116941260:6631

  name: Error
  Debug: on
  Request: w2.activeControl=w9&w9.selectedItemId=w27&org.eclipse.swt.events.widgetSelected=w9&w1.cursorLocation.x=958&w1.cursorLocation.y=37&w1.focusControl=w9&uiRoot=w1&requestCounter=8
  Phase: 2
Comment 1 Ivan Furnadjiev CLA 2011-04-12 10:43:06 EDT
The shorthand properties "top" and "bottom" no longer exist in qx.ui.core.Border class. Fixed by replacing these shorthand properties with their single-value properties in AppearanceBase.js. Changes are in CVS HEAD.