You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Robin Shine (JIRA)" <ji...@apache.org> on 2010/10/19 06:00:28 UTC

[jira] Created: (WICKET-3117) Wicket links prevent embedded javascript from executing in IE9 beta when the page is opened in a new tab

Wicket links prevent embedded javascript from executing in IE9 beta when the page is opened in a new tab
--------------------------------------------------------------------------------------------------------

                 Key: WICKET-3117
                 URL: https://issues.apache.org/jira/browse/WICKET-3117
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.4.12
         Environment: Windows7, Internet Explorer 9 beta
            Reporter: Robin Shine
            Priority: Critical


Reproducing steps:
1. Copy appended TestPage.java and TestPage.html into a Wicket web application, and mount this page at "/test" for example.
2. Open IE9 beta and navigate to "http://<server>:<port>/test" to open the page. A javascript message will be poped up as exected. 
3. Click the link in the page to open the same page in a new tab. The new tab will display the same page, but the javascript message will not be poped up!

This works in all other browsers except IE9. However since IE9 will be the mainstream browser, and the situation I described here is quite common, I choosed the priority as "critical".

TestPage.java:

package test;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.Link;

public class TestPage extends WebPage {

	public TestPage() {
		add(new Link("link") {

			@Override
			public void onClick() {
				setResponsePage(TestPage.class);
			}
			
		});
	}
	
}

TestPage.html:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	</head>
	<body>
		<a wicket:id="link" target="_blank">Click to open myself in a new tab</a>
		<script type="text/javascript">alert("This message should be poped up when the page is loaded.")</script>
	</body>
</html>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WICKET-3117) Wicket links prevent embedded javascript from executing in IE9 beta when the page is opened in a new tab

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-3117.
-----------------------------------

    Resolution: Invalid
      Assignee: Igor Vaynberg

IE 9 is a *beta*, this may simply be a bug in IE.

> Wicket links prevent embedded javascript from executing in IE9 beta when the page is opened in a new tab
> --------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-3117
>                 URL: https://issues.apache.org/jira/browse/WICKET-3117
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.12
>         Environment: Windows7, Internet Explorer 9 beta
>            Reporter: Robin Shine
>            Assignee: Igor Vaynberg
>            Priority: Critical
>
> Reproducing steps:
> 1. Copy appended TestPage.java and TestPage.html into a Wicket web application, and mount this page at "/test" for example.
> 2. Open IE9 beta and navigate to "http://<server>:<port>/test" to open the page. A javascript message will be poped up as exected. 
> 3. Click the link in the page to open the same page in a new tab. The new tab will display the same page, but the javascript message will not be poped up!
> This works in all other browsers except IE9. However since IE9 will be the mainstream browser, and the situation I described here is quite common, I choosed the priority as "critical".
> TestPage.java:
> package test;
> import org.apache.wicket.markup.html.WebPage;
> import org.apache.wicket.markup.html.link.Link;
> public class TestPage extends WebPage {
> 	public TestPage() {
> 		add(new Link("link") {
> 			@Override
> 			public void onClick() {
> 				setResponsePage(TestPage.class);
> 			}
> 			
> 		});
> 	}
> 	
> }
> TestPage.html:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <?xml version="1.0" encoding="UTF-8"?>
> <html xmlns="http://www.w3.org/1999/xhtml">
> 	<head>
> 	</head>
> 	<body>
> 		<a wicket:id="link" target="_blank">Click to open myself in a new tab</a>
> 		<script type="text/javascript">alert("This message should be poped up when the page is loaded.")</script>
> 	</body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.