The page is unloaded in IE whereas it isn't in Firefox:
IE:
1:28:34 debug [window.sync-connection] : [3866245] : send asynchronous POST1:28:34 debug [window.sync-connection] : [3866245] : receive [200] OK1:28:34 debug [window] : applied update : <script id="dynamic-code" language="javascript">var c = function()
{Ice.Focus.setFocus('_id10:_id14');}
;if(window.application)
{c();}else{window.onLoad(c)};//-598164228</script>1:28:34 debug
[window.synchronizer] : mark document as modified1:28:34 debug
[window.stateMon] : Checking
[0] monitors1:28:34 debug
[window.stateMon] : Rebuilding Monitors
[0]1:28:34 debug
[window.stateMon] : Rebuilding Monitors
[0]1:28:34 debug
[window] : Focus Set on
[_id10:_id14]1:28:38 debug
[window] : Interup pressed1:28:38 debug
[window] : User action. Set focus will be ignored.1:28:38 debug
[window.sync-connection] :
[4708715] : send asynchronous POST1:28:38 info
[window] : page unloaded!
Firefox:
[window.sync-connection] [2223747] : send asynchronous POSTicefaces-d2d.js (line 1044)
POST
http://localhost:8080/Forum-5165/block/send-receive-updates (62ms)icefaces-d2d.js (line 1163)
[window.sync-connection] [2223747] : receive
[200] OKicefaces-d2d.js (line 1044)
[window] applied update : <script id="dynamic-code" language="javascript">var c = function(){Ice.Focus.setFocus('_id10:_id14');};if(window.application){c();}
else
{window.onLoad(c)}
;//-92290223</script>icefaces-d2d.js (line 1044)
[window.stateMon] Checking [0] monitorsicefaces-d2d.js (line 1044)
[window.stateMon] Rebuilding Monitors [0]icefaces-d2d.js (line 1044)
[window.stateMon] Rebuilding Monitors [0]icefaces-d2d.js (line 1044)
[window] Focus Set on [_id10:_id14]icefaces-d2d.js (line 1044)
[window] Interup pressedicefaces-d2d.js (line 1044)
[window] User action. Set focus will be ignored.
IE fires document.onbeforeunload when an achor refering to another page is clicked (see http://msdn2.microsoft.com/en-us/library/ms536907.aspx ). ICEfaces relies on this event to dispose the server-side views, thus the view backing up the first page will be disposed when the link is clicked.
A fix is not really possible since the 'onbeforeunload' event handler cannot differentiate between a real page unload and a click on an anchor reffering to another page.
The workaround is to change the link slightly to:
<a href="#" onclick="window.open('calendar.jspx', 'secondWindow','location=0,menubar=0,resizable=0,width=500,height=450,scrollbars=1');">2nd window</a>