|
[
Permlink
| « Hide
]
Deryk Sinotte added a comment - 24/Jun/08 04:02 PM
Assigning to Mircea
In a portal environment with applications deployed in separate WARs the views contained in a window can belong to different sessions. Because of this the message sent for disposing the views needs to be handled by AHS which is the common access point that can notify all other deployed applications about the views that need to be disposed.
There seems to be an additional constrained due to browser's limitation of being capable to send only one XMLHTTPRequest on document.onbeforeunload event, after the first request the browser's document and all other objects belonging to the window are disposed by the browser. Jack,
Please have a look at my comments and commits for this issue. We need to handle the 'dispose-views' message in the AHS. The implementation would be a bit different then the one I updated in the 'core'. If you have concerns with the message structure let me know so we can keep both implementation consistent. I changed AHS to receive the new HTTP POST request .../block/dispose-views containing the following parameter:
ice.views=<ICEfaces ID>:<View Number>,<ICEfaces ID>:<View Number>,etc. The JavaScript Bridge needs to be updated in order to send this new format. AHS sends out a DisposeViews message type JMS message to the Core framework telling which Views can be disposed. Currently, the MainServlet has a MessageServiceClient instance that receives and parses the DisposeViews message. Re-assigning to Mircea for further work.
Create message handler per session. Change 'dispose-views' request format to avoid changes to the bridge. Refactor & simplify.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||