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

Bug 373084

Summary: Disposed widgets survive session restart (SimpleLifeCycle)
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 1.5   
Target Milestone: 1.5 M6   
Hardware: All   
OS: All   
Whiteboard:

Description Ivan Furnadjiev CLA 2012-03-02 08:34:27 EST
To reproduce start the ControlsDemo as RWT application. Press F5 to restart the session - destroy operations are render for the widgets from previous session which leads to javascript error:
Error: Error: Operation "destroy" on target "w2" of type "null" failed:
a is undefined
With the re-factorings for bug 372296 we restart/clear the session in the first POST request. SimpleLifeCycle does not clear the *service* store on restart. Before it was not needed as session was restarted in the GET, but rendering take place in the next POST. Now, both happen in the same request. As the list with disposed widgets is kept in the service store we have to clear it on session restart.
Comment 1 Ivan Furnadjiev CLA 2012-03-02 12:25:54 EST
Fixed in CVS HEAD by clearing the service store on session restart.