Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363721 - Invalid argument removing Map Sample Portal in PortalSample
Summary: Invalid argument removing Map Sample Portal in PortalSample
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-14 11:43 EST by broy2 CLA
Modified: 2017-02-23 14:20 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description broy2 CLA 2011-11-14 11:43:07 EST
Import org.eclipse.edt.rui.dojo.samples_0.7.0.
Open PortalSample in utils.portal.
Preview.
Click Add2.
Map Sample Portlet displays.
Click Remove Last.

Invalid argument.
intl/en_us/mapfiles/api-3/7/1/main.js:1
[CRRUI2094E] Here are the EGL function calls leading to this error:

    org/eclipse/edt/rui/widgets/Box.egl() at line 120
    org/eclipse/edt/rui/widgets/Box.egl() at line 52
    org/eclipse/edt/rui/widgets/Box.egl() at line 115
    utils/portal/Portal.egl() at line 120
    utils/portal/PortalSample.egl() at line 88
    DojoButton.DojoButton.handleEvent() [native JavaScript]
Comment 1 Brian Svihovec CLA 2011-11-16 10:59:45 EST
This appears to be an IE only bug.  Can you try this in RBD?
Comment 2 Brian Svihovec CLA 2011-11-17 12:03:56 EST
This seems to be related to the Map widget.  The following code fails as well (only in IE):

handler H3 type RUIhandler{initialUI =[ui
            ], onConstructionFunction = start, cssFile = "css/P1.css", title = "H3"}

 	map GoogleMap { center = "NYC, NC", width = 498, height = 400 };
    ui Box{children = [map, button]};
    button Button{text = "go", onClick ::= removeMap};

    function start()
    end
    
    function removeMap(e Event in) 
    	ui.removeChild(map);
    end
end

Since this is seems to be a Map widget problem, I am moving this to the Website component.
Comment 3 Brian Svihovec CLA 2011-11-30 11:47:58 EST
Brenda, can you try this again?  It doesn't seem to be happening for me anymore.  I wonder if it was fixed indirectly by another JS Generation or Widget change.
Comment 4 broy2 CLA 2011-11-30 12:33:09 EST
Works in GM build.
Comment 5 broy2 CLA 2011-11-30 12:33:23 EST
Verified in GM build.