Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342558

Summary: JS error when using TabFolder
Product: [RT] RAP Reporter: Benjamin Wolff <eclipse>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P1    
Version: 1.4   
Target Milestone: 1.4 M7   
Hardware: PC   
OS: All   
Whiteboard:

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.