Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Upload Widget
Upload Widget [message #656379] Fri, 25 February 2011 11:27 Go to next message
Edin Edin is currently offline Edin EdinFriend
Messages: 101
Registered: January 2010
Senior Member
Hello, im using RAP 1.4 M5 and im trying to integrate the Upload Widget from the sandbox. The only code for it i have is:

Upload upload = new Upload(this, SWT.NONE, Upload.SHOW_PROGRESS | Upload.SHOW_UPLOAD_BUTTON | Upload.FIRE_PROGRESS_EVENTS);

but with that im getting the following error:

Could not evaluate javascript response:

Error: TypeError: this._uploadField._button._input is undefined

Script: var req = org.eclipse.swt.Request.getInstance();req.setRequestCounter( "10" );var wm = org.eclipse.swt.WidgetManager.getInstance();var w = wm.findWidgetById( "w108" );w.setSpace( 3, 1354, 26, 638 );w.setVisibility( false );var w = wm.findWidgetById( "w109" );w.setSpace( 0, 1354, 0, 638 );var w = wm.findWidgetById( "w117" );w.setTabIndex( -1 );var w = wm.findWidgetById( "w118" );w.setTabIndex( -1 );var w = wm.findWidgetById( "w119" );w.setTabIndex( -1 );var w = wm.findWidgetById( "w121" );w.setTabIndex( -1 );var w = wm.findWidgetById( "w122" );w.setTabIndex( -1 );var w = wm.findWidgetById( "w124" );w.setTabIndex( -1 );var w = wm.findWidgetById( "w125" );w.setTabIndex( -1 );var w = wm.findWidgetById( "w127" );w.setTabIndex( -1 );var w = wm.findWidgetById( "w113" );w.setSpace( 5, 1344, 78, 555 );var w = wm.findWidgetById( "w114" );w.setSpace( 5, 1334, 61, 489 );var w = wm.findWidgetById( "w106" );w.setSpace( 0, 1324, 0, 479 );w.setTabIndex( -1 );var w = wm.findWidgetById( "w133" );w.setTabIndex( -1 );var w = wm.findWidgetById( "w134" );w.setTabIndex( -1 );var w = wm.findWidgetById( "w135" );w.setTabIndex( -1 );var w = wm.findWidgetById( "w136" );w.setTabIndex( -1 );var w = wm.findWidgetById( "w70" );w.setSpace( 0, 1360, 0, 705 );w.setVisibility( true );w.setEnabled( true );var w = new org.eclipse.swt.widgets.Composite();wm.add( w, "w138", true );wm.setParent( w, "w70" );w.setSpace( 3, 1354, 26, 676 );w.setZIndex( 300 );w.setTabIndex( -1 );var t = wm.findWidgetById( "w25" );t.addActivateListenerWidget( w );var w = new org.eclipse.swt.widgets.Composite();wm.add( w, "w139", true );wm.setParent( w, "w138" );w.setSpace( 0, 1354, 0, 676 );w.setZIndex( 300 );w.setTabIndex( -1 );var w = new org.eclipse.swt.widgets.Composite();wm.add( w, "w140", true );wm.setParent( w, "w139" );w.addState( "rwt_BORDER" );w.setSpace( 5, 1344, 5, 62 );w.setZIndex( 300 );w.setTabIndex( -1 );var w = new org.eclipse.swt.widgets.Composite();wm.add( w, "w141", true );wm.setParent( w, "w140" );w.setSpace( 0, 1959, 0, 60 );w.setZIndex( 300 );w.setTabIndex( -1 );var w = new org.eclipse.rwt.widgets.Button( "push" );wm.add( w, "w146", true );wm.setParent( w, "w141" );w.addState( "rwt_PUSH" );w.setSpace( 10, 32, 15, 32 );w.setZIndex( 300 );w.setTabIndex( 34 );wm.setToolTip( w, "Speichern" );w.setText( null );w.setHasSelectionListener( true );w.addState( "variant_btnSave" );var w = new org.eclipse.rwt.widgets.Button( "push" );wm.add( w, "w147", true );wm.setParent( w, "w141" );w.addState( "rwt_PUSH" );w.setSpace( 52, 32, 15, 32 );w.setZIndex( 299 );w.setTabIndex( 35 );wm.setToolTip( w, "Abbrechen" );w.setText( null );w.setHasSelectionListener( true );w.addState( "variant_btnCancel" );var w = new org.eclipse.rwt.widgets.Button( "push" );wm.add( w, "w148", true );wm.setParent( w, "w141" );w.addState( "rwt_PUSH" );w.setSpace( 94, 32, 15, 32 );w.setZIndex( 298 );w.setTabIndex( 36 );wm.setToolTip( w, "DrĂ¼cken" );w.setText( null );w.setHasSelectionListener( true );w.addState( "variant_btnPrint" );var w = new org.eclipse.swt.widgets.Separator();wm.add( w, "w149", true );wm.setParent( w, "w141" );w.addState( "rwt_SEPARATOR" );w.setLineOrientation( "vertical" );w.setLineStyle( "rwt_SHADOW_OUT" );w.setSpace( 145, 1, 2, 56 );w.setZIndex( 297 );w.setTabIndex( -1 );var w = new org.eclipse.swt.widgets.Composite();wm.add( w, "w142", true );wm.setParent( w, "w140" );w.setSpace( 1959, 0, 0, 60 );w.setZIndex( 299 );w.setTabIndex( -1 );w.setVisibility( false );var w = new org.eclipse.swt.widgets.Composite();wm.add( w, "w143", true );wm.setParent( w, "w139" );w.addState( "rwt_BORDER" );w.setSpace( 5, 1344, 72, 599 );w.setZIndex( 299 );w.setTabIndex( -1 );var w = new org.eclipse.swt.widgets.Composite();wm.add( w, "w144", true );wm.setParent( w, "w143" );w.setSpace( 0, 1342, 0, 597 );w.setZIndex( 300 );w.setTabIndex( 39 );var w = new org.eclipse.rwt.widgets.Text( false );wm.add( w, "w150", true );wm.setParent( w, "w144" );w.addState( "rwt_SINGLE" );org.eclipse.swt.TextUtil.initialize( w );w.addState( "rwt_BORDER" );w.setSpace( 95, 110, 37, 21 );w.setZIndex( 300 );w.setTabIndex( 40 );w.addEventListener( "focusin", org.eclipse.swt.EventUtil.focusGained );w.addEventListener( "focusout", org.eclipse.swt.EventUtil.focusLost );org.eclipse.swt.TextUtil.setHasVerifyOrModifyListener( w, false );org.eclipse.swt.TextUtil.setHasSelectionListener( w, false );var w = new org.eclipse.rwt.widgets.Text( false );wm.add( w, "w151", true );wm.setParent( w, "w144" );w.addState( "rwt_SINGLE" );org.eclipse.swt.TextUtil.initialize( w );w.addState( "rwt_BORDER" );w.setSpace( 95, 110, 301, 21 );w.setZIndex( 299 );w.setTabIndex( 41 );w.addEventListener( "focusin", org.eclipse.swt.EventUtil.focusGained );w.addEventListener( "focusout", org.eclipse.swt.EventUtil.focusLost );org.eclipse.swt.TextUtil.setHasVerifyOrModifyListener( w, false );org.eclipse.swt.TextUtil.setHasSelectionListener( w, false );var w = new org.eclipse.rwt.widgets.Text( false );wm.add( w, "w152", true );wm.setParent( w, "w144" );w.addState( "rwt_SINGLE" );org.eclipse.swt.TextUtil.initialize( w );w.addState( "rwt_BORDER" );w.setSpace( 95, 110, 328, 21 );w.setZIndex( 298 );w.setTabIndex( 42 );w.addEventListener( "focusin", org.eclipse.swt.EventUtil.focusGained );w.addEventListener( "focusout", org.eclipse.swt.EventUtil.focusLost );org.eclipse.swt.TextUtil.setHasVerifyOrModifyListener( w, false );org.eclipse.swt.TextUtil.setHasSelectionListener( w, false );var w = new org.eclipse.rwt.widgets.Text( false );wm.add( w, "w153", true );wm.setParent( w, "w144" );w.addState( "rwt_SINGLE" );org.eclipse.swt.TextUtil.initialize( w );w.addState( "rwt_BORDER" );w.setSpace( 358, 110, 378, 21 );w.setZIndex( 297 );w.setTabIndex( 43 );w.addEventListener( "focusin", org.eclipse.swt.EventUtil.focusGained );w.addEventListener( "focusout", org.eclipse.swt.EventUtil.focusLost );org.eclipse.swt.TextUtil.setHasVerifyOrModifyListener( w, false );org.eclipse.swt.TextUtil.setHasSelectionListener( w, false );var w = new org.eclipse.rwt.widgets.Upload( " /webapp?custom_service_handler=org.eclipse.rwt.widgets.uploa d.servlet.FileUploadServiceHandler&widgetId=2850754 ", 7 );wm.add( w, "w154", true );wm.setParent( w, "w144" );w.setAppearance( "composite" );w.setOverflow( "hidden" );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 296 );w.setTabIndex( -1 );w.setVisibility( false );w.setLastFileUploaded( "" );w.setBrowseButtonText( "Browse", 52 );w.setUploadButtonText( "Upload", 52 );var w = new qx.ui.basic.Atom();wm.add( w, "w155", true );wm.setParent( w, "w144" );org.eclipse.swt.LabelUtil.initialize( w );org.eclipse.swt.LabelUtil.setWrap( w, false );w.setSpace( 10, 65, 40, 18 );w.setZIndex( 295 );w.setTabIndex( -1 );org.eclipse.swt.LabelUtil.setText( w, "Name:" );var w = new qx.ui.basic.Atom();wm.add( w, "w156", true );wm.setParent( w, "w144" );org.eclipse.swt.LabelUtil.initialize( w );org.eclipse.swt.LabelUtil.setWrap( w, false );w.setSpace( 10, 65, 94, 18 );w.setZIndex( 294 );w.setTabIndex( -1 );org.eclipse.swt.LabelUtil.setText( w, "Beleg Typ:" );var w = new qx.ui.basic.Atom();wm.add( w, "w157", true );wm.setParent( w, "w144" );org.eclipse.swt.LabelUtil.initialize( w );org.eclipse.swt.LabelUtil.setWrap( w, false );w.setSpace( 252, 76, 381, 18 );w.setZIndex( 293 );w.setTabIndex( -1 );org.eclipse.swt.LabelUtil.setText( w, "Status:" );var w = new org.eclipse.rwt.widgets.Text( false );wm.add( w, "w158", true );wm.setParent( w, "w144" );w.addState( "rwt_SINGLE" );org.eclipse.swt.TextUtil.initialize( w );w.addState( "rwt_BORDER" );w.setSpace( 95, 110, 64, 21 );w.setZIndex( 292 );w.setTabIndex( 44 );w.addEventListener( "focusin", org.eclipse.swt.EventUtil.focusGained );w.addEventListener( "focusout", org.eclipse.swt.EventUtil.focusLost );w.setValue( "0001" );org.eclipse.swt.TextUtil.setHasVerifyOrModifyListener( w, false );org.eclipse.swt.TextUtil.setHasSelectionListener( w, false );var w = new org.eclipse.rwt.widgets.Text( false );wm.add( w, "w159", true );wm.setParent( w, "w144" );w.addState( "rwt_SINGLE" );org.eclipse.swt.TextUtil.initialize( w );w.addState( "rwt_BORDER" );w.setSpace( 95, 110, 10, 21 );w.setZIndex( 291 );w.setTabIndex( 45 );w.addEventListener( "focusin", org.eclipse.swt.EventUtil.focusGained );w.addEventListener( "focusout", org.eclipse.swt.EventUtil.focusLost );org.eclipse.swt.TextUtil.setHasVerifyOrModifyListener( w, false );org.eclipse.swt.TextUtil.setHasSelectionListener( w, false );var w = new qx.ui.basic.Atom();wm.add( w, "w160", true );wm.setParent( w, "w144" );org.eclipse.swt.LabelUtil.initialize( w );org.eclipse.swt.LabelUtil.setWrap( w, false );w.setSpace( 10, 65, 13, 19 );w.setZIndex( 290 );w.setTabIndex( -1 );org.eclipse.swt.LabelUtil.setText( w, "KundenNr.:" );var w = new org.eclipse.rwt.widgets.Text( false );wm.add( w, "w161", true );wm.setParent( w, "w144" );w.addState( "rwt_SINGLE" );org.eclipse.swt.TextUtil.initialize( w );w.addState( "rwt_BORDER" );w.setSpace( 358, 110, 91, 21 );w.setZIndex( 289 );w.setTabIndex( 46 );w.addEventListener( "focusin", org.eclipse.swt.EventUtil.focusGained );w.addEventListener( "focusout", org.eclipse.swt.EventUtil.focusLost );org.eclipse.swt.TextUtil.setHasVerifyOrModifyListener( w, false );org.eclipse.swt.TextUtil.setHasSelectionListener( w, false );var w = new qx.ui.basic.Atom();wm.add( w, "w162", true );wm.setParent( w, "w144" );org.eclipse.swt.LabelUtil.initialize( w );org.eclipse.swt.LabelUtil.setWrap( w, false );w.setSpace( 10, 79, 118, 21 );w.setZIndex( 288 );w.setTabIndex( -1 );org.eclipse.swt.LabelUtil.setText( w, "Beschreibung:" );var w = new qx.ui.basic.Atom();wm.add( w, "w163", true );wm.setParent( w, "w144" );org.eclipse.swt.LabelUtil.initialize( w );org.eclipse.swt.LabelUtil.setWrap( w, false );w.setSpace( 252, 100, 13, 18 );w.setZIndex( 287 );w.setTabIndex( -1 );org.eclipse.swt.LabelUtil.setText( w, "VorgangsNr.:" );var w = new org.eclipse.rwt.widgets.Text( false );wm.add( w, "w164", true );wm.setParent( w, "w144" );w.addState( "rwt_SINGLE" );org.eclipse.swt.TextUtil.initialize( w );w.addState( "rwt_BORDER" );w.setSpace( 358, 110, 10, 21 );w.setZIndex( 286 );w.setTabIndex( 47 );w.addEventListener( "focusin", org.eclipse.swt.EventUtil.focusGained );w.addEventListener( "focusout", org.eclipse.swt.EventUtil.focusLost );org.eclipse.swt.TextUtil.setHasVerifyOrModifyListener( w, false );org.eclipse.swt.TextUtil.setHasSelectionListener( w, false );var w = new org.eclipse.rwt.widgets.Text( false );wm.add( w, "w165", true );wm.setParent( w, "w144" );w.addState( "rwt_SINGLE" );org.eclipse.swt.TextUtil.initialize( w );w.addState( "rwt_BORDER" );w.setSpace( 95, 110, 91, 21 );w.setZIndex( 285 );w.setTabIndex( 48 );w.addEventListener( "focusin", org.eclipse.swt.EventUtil.focusGained );w.addEventListener( "focusout", org.eclipse.swt.EventUtil.focusLost );w.setValue( "T" );org.eclipse.swt.TextUtil.setHasVerifyOrModifyListener( w, false );org.eclipse.swt.TextUtil.setHasSelectionListener( w, false );var w = new org.eclipse.rwt.widgets.Text( true );wm.add( w, "w166", true );wm.setParent( w, "w144" );org.eclipse.swt.TextUtil.initialize( w );w.addState( "rwt_BORDER" );w.addState( "rwt_MULTI" );w.setWrap( true );w.setSpace( 95, 373, 118, 150 );w.setZIndex( 284 );w.setTabIndex( 49 );w.addEventListener( "focusin", org.eclipse.swt.EventUtil.focusGained );w.addEventListener( "focusout", org.eclipse.swt.EventUtil.focusLost );org.eclipse.swt.TextUtil.setHasVerifyOrModifyListener( w, false );var w = new org.eclipse.rwt.widgets.Text( false );wm.add( w, "w167", true );wm.setParent( w, "w144" );w.addState( "rwt_SINGLE" );org.eclipse.swt.TextUtil.initialize( w );w.addState( "rwt_BORDER" );w.setSpace( 95, 110, 274, 21 );w.setZIndex( 283 );w.setTabIndex( 50 );w.addEventListener( "focusin", org.eclipse.swt.EventUtil.focusGained );w.addEventListener( "focusout", org.eclipse.swt.EventUtil.focusLost );org.eclipse.swt.TextUtil.setHasVerifyOrModifyListener( w, false );org.eclipse.swt.TextUtil.setHasSelectionListener( w, false );var w = new qx.ui.basic.Atom();wm.add( w, "w168", true );wm.setParent( w, "w144" );org.eclipse.swt.LabelUtil.initialize( w );org.eclipse.swt.LabelUtil.setWrap( w, false );w.setSpace( 10, 65, 67, 18 );w.setZIndex( 282 );w.setTabIndex( -1 );org.eclipse.swt.LabelUtil.setText( w, "BelegNr.:" );var w = new qx.ui.basic.Atom();wm.add( w, "w169", true );wm.setParent( w, "w144" );org.eclipse.swt.LabelUtil.initialize( w );org.eclipse.swt.LabelUtil.setWrap( w, false );w.setSpace( 252, 100, 94, 18 );w.setZIndex( 281 );w.setTabIndex( -1 );org.eclipse.swt.LabelUtil.setText( w, "Delegiert an:" );var w = new qx.ui.basic.Atom();wm.add( w, "w170", true );wm.setParent( w, "w144" );org.eclipse.swt.LabelUtil.initialize( w );org.eclipse.swt.LabelUtil.setWrap( w, false );w.setSpace( 10, 79, 277, 18 );w.setZIndex( 280 );w.setTabIndex( -1 );org.eclipse.swt.LabelUtil.setText( w, "Text 1:" );var w = new qx.ui.basic.Atom();wm.add( w, "w171", true );wm.setParent( w, "w144" );org.eclipse.swt.LabelUtil.initialize( w );org.eclipse.swt.LabelUtil.setWrap( w, false );w.setSpace( 10, 79, 304, 18 );w.setZIndex( 279 );w.setTabIndex( -1 );org.eclipse.swt.LabelUtil.setText( w, "Text 2:" );var w = new qx.ui.basic.Atom();wm.add( w, "w172", true );wm.setParent( w, "w144" );org.eclipse.swt.LabelUtil.initialize( w );org.eclipse.swt.LabelUtil.setWrap( w, false );w.setSpace( 10, 79, 331, 18 );w.setZIndex( 278 );w.setTabIndex( -1 );org.eclipse.swt.LabelUtil.setText( w, "Text 3:" );var w = wm.findWidgetById( "w67" );w.setSpace( 0, 1360, 0, 705 );w.setZIndex( 299 );w.setTabIndex( 21 );w.setVisibility( true );w.addEventListener( "focusin", org.eclipse.swt.EventUtil.focusGained );w.addEventListener( "focusout", org.eclipse.swt.EventUtil.focusLost );w.showMaxButton( 1339, 2, 18, 18 );w.showMinButton( 1321, 2, 18, 18 );w.setMinMaxState( "max" );w.setSelectionForeground( "#000000" );w.setSelectionBackground( "#4ca6d2" );w.setSelectionBackgroundGradient( ["#d2e8f3","#4ca6d2" ], [0,75 ], true );var w = new org.eclipse.swt.custom.CTabItem( wm.findWidgetById( "w67" ), true );wm.add( w, "w173", false );var t = wm.findWidgetById( "w67" );t.add( w );w.setSpace( 0, 141, 0, 24 );w.setLabel( "TaskEditor" );w.setIcon( "rwt-resources/generated/f2add192" );wm.setToolTip( w, "ACBTASK" );w.setShowClose( true );w.setSelected( true );w.addState( "firstItem" );var w = wm.findWidgetById( "w69" );w.setTabIndex( 22 );var w = wm.findWidgetById( "w92" );w.setSpace( 141, 1179, 1, 22 );var w = wm.findWidgetById( "w68" );w.setSpace( 3, 1354, 26, 676 );w.setTabIndex( 24 );w.setVisibility( true );var w = wm.findWidgetById( "w97" );w.setSpace( 0, 1354, 0, 676 );var w = wm.findWidgetById( "w71" );w.setSpace( 0, 1360, 0, 667 );w.setTabIndex( -1 );w.setVisibility( false );w.setSelectionForeground( "#4a4a4a" );w.setSelectionBackground( "#ffffff" );w.setSelectionBackgroundGradient( ["#ffffff","#ffffff" ], [0,100 ], true );var w = wm.findWidgetById( "w73" );w.setTabIndex( -1 );var w = wm.findWidgetById( "w72" );w.setSpace( 3, 1354, 26, 638 );w.setTabIndex( -1 );var w = wm.findWidgetById( "w105" );w.setSpace( 0, 1354, 0, 638 );var w = wm.findWidgetById( "w25" );w.setActiveControl( w );org.eclipse.swt.WidgetManager.getInstance().focus( "w25" );org.eclipse.swt.FontSizeCalculation.measureStrings( [ [ 31845311, "ACBTASK", [ "Verdana", "Lucida Sans", "Arial", "Helvetica", "sans-serif" ], 12, false, false, -1 ], [ 30958654, "TaskEditor", [ "Verdana", "Lucida Sans", "Arial", "Helvetica", "sans-serif" ], 12, false, false, -1 ], [ 27076478, "Browse", [ "Verdana", "Lucida Sans", "Arial", "Helvetica", "sans-serif" ], 12, false, false, -1 ], [ 9171253, "Upload", [ "Verdana", "Lucida Sans", "Arial", "Helvetica", "sans-serif" ], 12, false, false, -1 ] ] );
message: this._uploadField._button._input is undefined
fileName: http://127.0.0.1:8080/webapp?custom_service_handler=org.ecli pse.rwt.internal.service.JSLibraryServiceHandler&hash=H1 071990429
lineNumber: 251
stack: ([object Object]) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:251
([object Object],true) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:20
([object Object],true) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:20
("changeEnabled",true,null) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:20
anonymous(true) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:14
([object Object]) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:14
([object Object],null) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:41
anonymous([object Object]) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:14
([object Object],"w144") @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:153
([object Object]) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:151
([object Object]) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:151
([object Object],(void 0)) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:20
([object Object]) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:20
([object Object]) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:126
([object Object]) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:118
([object Object],(void 0)) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:20
([object Object]) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:20
("completed","receiving") @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:119
anonymous("completed") @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:14
([object Object]) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:119
([object Object],true) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:20
([object Object],true) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:20
("completed") @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:20
("completed","receiving") @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:122
anonymous("completed") @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:14
([object Event]) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:122
([object Event]) @http://127.0.0.1:8080/webapp?custom_service_handler=org.ecl ipse.rwt.internal.service.JSLibraryServiceHandler&hash=H 1071990429:17

name: TypeError
Debug: off
Request: org.eclipse.swt.events.controlActivated=w127&org.eclipse .swt.events.widgetSelected=w127&w1.cursorLocation.x=695& amp;w1.cursorLocation.y=82&w1.focusControl=w127&uiRo ot=w1&requestCounter=9

Any idea why? Without Upload WIdget everything works perfect.

The second question is. Is it possible to tell the upload widget to upload all files from a given directory? If not, is it possible somehow to simulate it?

Greetings Edin
Re: Upload Widget [message #656533 is a reply to message #656379] Sat, 26 February 2011 11:45 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Edin,

a JavaScript error is almost always a bug. So, if you don't add any
JavaScript by yourself but get this error, please open a bug.

Regarding your second question, it is not possible to upload all files
from a directory. I think your only option is to have more than one
Upload instance to be able to upload a bunch files.

It may be of interest for you that we're currently working on a new
FileUpload widget [1], which will likely be included in the next
milestone. Austin and Cole are also working on a FileDialog
implementation based on this new widget, which will allow to select more
than one file.

Best regards, Ralf

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=190763

--
Ralf Sternberg

Twitter: @ralfstx
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Upload Widget [message #656811 is a reply to message #656533] Mon, 28 February 2011 17:17 Go to previous messageGo to next message
Edin Edin is currently offline Edin EdinFriend
Messages: 101
Registered: January 2010
Senior Member
Hi, Ralf

that sounds great!!! Will the next milstone also contain FIleDialog? If not is there now existing some running beta version of widget (CVS?) to get it for testing purposes.
We want in the near future to create some simple online backup software, and therefore we would like to test if RAP satisfies our requirements.

Greetings, Edin
Re: Upload Widget [message #656979 is a reply to message #656811] Tue, 01 March 2011 09:05 Go to previous messageGo to next message
Edin Edin is currently offline Edin EdinFriend
Messages: 101
Registered: January 2010
Senior Member
By the way, The error with the Upload seems to come every time i put the Upload widget in a EditorPart subclass, in ViewPart subclass there are no problems
Re: Upload Widget [message #657074 is a reply to message #656811] Tue, 01 March 2011 14:18 Go to previous message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
Hi Edin,

It is our plan to have RAP support the use of 3rd party FileDialog implementations. A default implementation will be available in the incubator by 1.4 M6. We also plan to start building the incubator bundles and offering them in binary form via p2 repository by the Indigo release.
Previous Topic:[Wizard]: TableViewer selectionProvider inside a Wizard
Next Topic:[ANN] RAP 1.3.2 is available
Goto Forum:
  


Current Time: Thu Oct 21 19:34:02 GMT 2021

Powered by FUDForum. Page generated in 0.01986 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top