GWT Window.open在IE中不起作用

时间:2013-02-19 05:14:19

标签: internet-explorer gwt window.open

我是GWT的新手。在我的应用程序中,我使用Window.open打开一个新窗口。它在chrome和firefox中运行良好,但在IE8中不起作用。我正在使用的代码粘贴在下面。我了解到,如果我们在url中有空格,我们将遇到此问题,但我的url不包含任何空格。你能告诉我我做错了吗?

  if (this.navigationComponentUrl != null) {

        String uniqueID = UniqueIDHelper.generateUniqueID();

        PropertyList parameterProperties = new PropertyList();
        parameterProperties.setProperty(NavigationComponentConstants.NAVIGATION_UNIQUE_ID_KEY, uniqueID);

        PropertyList fragmentProperties = new PropertyList(propertyList);
        fragmentProperties.setProperty(NavigationComponentConstants.NAVIGATION_ACTION_KEY,
                NavigationComponentConstants.NAVIGATION_ACTION_REQUEST);
        fragmentProperties.setProperty(NavigationComponentConstants.NAVIGATION_APP_KEY, appId);
        fragmentProperties.setProperty(NavigationComponentConstants.NAVIGATION_PAGE_KEY, pageId);

        URL u = new URL(this.navigationComponentUrl);
        u.setPath(NavigationComponentConstants.NAVIGATION_COMMUNICATION_PATH);
        u.setFragment(fragmentProperties.toQueryString());
        u.setParameterString(parameterProperties.toQueryString());
        LOG.info("new url: " + u.toURLString());

        Window.open(u.toURLString(), NavigationComponentConstants.NAVIGATION_COMMUNICATION_FRAME_NAME, "");

0 个答案:

没有答案