Details
Description
<a href="javascript:void(window.open('/Forum-5165/second.jspx', 'secondWindow', 'location=0,menubar=0,resizable=0,width=500,height=450,scrollbars=1'))">Link </a>
This will open a new window. If you go back to the first page in IE, the submits are broken and the page will be non-functional. Works ok in Firefox
-
Hide
- Forum-5165.zip
- 5.17 MB
- Philip Breau
-
- Forum-5165/.classpath 0.4 kB
- Forum-5165/.project 0.8 kB
- Forum-5165/.../org.eclipse.jdt.core.prefs 0.3 kB
- Forum-5165/.../org.eclipse.jst.common.project.facet.core.prefs 0.2 kB
- Forum-5165/.../org.eclipse.wst.common.component 0.4 kB
- Forum-5165/.../org.eclipse.wst.common.project.facet.core.xml 0.3 kB
- Forum-5165/build/classes/Bean.class 0.7 kB
- Forum-5165/src/Bean.java 0.2 kB
- Forum-5165/WebContent/main.jspx 1 kB
- Forum-5165/WebContent/.../MANIFEST.MF 0.0 kB
- Forum-5165/WebContent/second.jspx 0.8 kB
- Forum-5165/WebContent/.../faces-config.xml 0.6 kB
- Forum-5165/.../backport-util-concurrent.jar 343 kB
- Forum-5165/.../commons-beanutils.jar 184 kB
- Forum-5165/.../commons-collections.jar 558 kB
- Forum-5165/.../commons-digester.jar 107 kB
- Forum-5165/.../commons-fileupload.jar 52 kB
- Forum-5165/.../commons-logging.jar 52 kB
- Forum-5165/WebContent/.../lib/el-api.jar 24 kB
- Forum-5165/WebContent/.../lib/el-ri.jar 97 kB
- Forum-5165/WebContent/.../icefaces-comps.jar 624 kB
- Forum-5165/.../icefaces-facelets.jar 574 kB
- Forum-5165/WebContent/.../lib/icefaces.jar 658 kB
- Forum-5165/WebContent/.../lib/jsf-api.jar 356 kB
- Forum-5165/WebContent/.../lib/jsf-impl.jar 778 kB
- Forum-5165/WebContent/.../lib/jstl.jar 17 kB
- Forum-5165/.../krysalis-jCharts-1.0.0-alpha-1.jar 151 kB
- Forum-5165/WebContent/.../lib/xercesImpl.jar 1.15 MB
- Forum-5165/WebContent/.../lib/xml-apis.jar 190 kB
- Forum-5165/WebContent/WEB-INF/web.xml 4 kB
Issue Links
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
What does the ICEfaces JavaScript console show when you interact with the broken form?
Assigning to Philip since he has the example running and should be able to fill in the ICEfaces console details.
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.
Why does the POST occur on IE just before the window.unloaded? This may be a clue to the problem.
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>
test case