<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "outputLink open document problem"]]></title>
		<link>http://www.icefaces.org/JForum/posts/list/15.page</link>
		<description><![CDATA[Latest messages posted in the topic "outputLink open document problem"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>outputLink open document problem</title>
				<description><![CDATA[ Hi,

My application needs to allow users to download dinamicly created files. I've implemented this functionality by providing outputLink component with rul pointing to these files. However, in Mozilla, when I click on the created link the download dialog pops up and I can save file on my local disk. But, when I close the download dialog and try to execute some other action(button or link), the application stops responding. The connection status component shows that connection is lost. So in order for the application to continue working I need to refresh page. On the other hand I'm no expiriencing such problems with Internet Explorer(connection stays active/live).]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/3165.page#15145</guid>
				<link>http://www.icefaces.org/JForum/posts/list/3165.page#15145</link>
				<pubDate><![CDATA[Fri, 15 Dec 2006 06:44:01]]> GMT</pubDate>
				<author><![CDATA[ keny]]></author>
			</item>
			<item>
				<title>Re:outputLink open document problem</title>
				<description><![CDATA[ Hi,

I've forgot to mention that I've managed to force it to work by setting synchronousUpdate parametar to true

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
    &lt;context-param&gt;
        param-name&gt;com.icesoft.faces.synchronousUpdate&lt;/param-name&gt;
        &lt;param-value&gt;true&lt;/param-value&gt;
    &lt;/context-param&gt;
</pre>
		</div>

, but then some other components (inputFile with progressBar) stop working. 
Is it an issue of Mozilla or it has to the with icefaces. Is there any way I can make them both work in same time under mozilla. In Internet Explorer everything works fine when synchronousUpdate parametar is set to false.]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/3165.page#15187</guid>
				<link>http://www.icefaces.org/JForum/posts/list/3165.page#15187</link>
				<pubDate><![CDATA[Mon, 18 Dec 2006 03:05:17]]> GMT</pubDate>
				<author><![CDATA[ keny]]></author>
			</item>
			<item>
				<title>Re:outputLink open document problem</title>
				<description><![CDATA[ Setting the target to _blank will open the download in a new window, and keep the AJAX connection open to the server.

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
&lt;ice:outputLink target="_blank" value="http://download.url"&gt;Download
            &lt;/ice:outputLink&gt;
</pre>
		</div>]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/3165.page#15253</guid>
				<link>http://www.icefaces.org/JForum/posts/list/3165.page#15253</link>
				<pubDate><![CDATA[Tue, 19 Dec 2006 12:46:22]]> GMT</pubDate>
				<author><![CDATA[ rmayhew]]></author>
			</item>
			<item>
				<title>Re:outputLink open document problem</title>
				<description><![CDATA[ @rmayhew

I've tried your suggestion, but the connection was being lost again. Here is the sample code that can be used to replicate the error I'm getting. Try it out in Mozilla (folow the instrunctions from my previous posts).]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/3165.page#15289</guid>
				<link>http://www.icefaces.org/JForum/posts/list/3165.page#15289</link>
				<pubDate><![CDATA[Wed, 20 Dec 2006 02:10:09]]> GMT</pubDate>
				<author><![CDATA[ keny]]></author>
			</item>
			<item>
				<title>Re:outputLink open document problem</title>
				<description><![CDATA[ Hi,

Thanks for the example. I added target="_blank" to the link. This causes the download to happen in a new window, and will not break the connection. FF2 close the window, Mozilla keeps it open, IE6 will also close the window.

The reason it's important to open a new window is clicking a download link in the existing window will break the Java Script connection link (As you have noticed)

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
&lt;f:view xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ice="http://www.icesoft.com/icefaces/component"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:c="http://java.sun.com/jstl/core"
        xmlns:fn="http://java.sun.com/jsp/jstl/functions"&gt;

	&lt;html&gt;
		&lt;head&gt;
			&lt;title&gt;Svarog&lt;/title&gt;
			&lt;link href="css/xp/xp.css" rel="stylesheet" type="text/css"/&gt;
		&lt;/head&gt;
  
		&lt;body&gt;
    
		&lt;ice:panelGrid border="0" cellpadding="0" cellspacing="0" width="100%" 		   &gt;

               &lt;ice:panelGrid styleClass="navConnectionStatus" columnClasses="statusLeft, statusRight" columns="2"&gt;
                    &lt;ice:outputConnectionStatus /&gt;
               &lt;/ice:panelGrid&gt;
               
               &lt;ice:panelGrid&gt;
                   &lt;ice:outputLink value="scripts/xml.zip" target="_blank"&gt;Download&lt;/ice:outputLink&gt;
               &lt;/ice:panelGrid&gt;
               
                
					        
    	&lt;/ice:panelGrid&gt;
    	&lt;/body&gt;
	&lt;/html&gt;
&lt;/f:view&gt;
</pre>
		</div>]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/3165.page#15304</guid>
				<link>http://www.icefaces.org/JForum/posts/list/3165.page#15304</link>
				<pubDate><![CDATA[Wed, 20 Dec 2006 10:49:07]]> GMT</pubDate>
				<author><![CDATA[ rmayhew]]></author>
			</item>
			<item>
				<title>Re:outputLink open document problem</title>
				<description><![CDATA[ Hi, 

I have added target="_blank" to my outputLink, but 
I am having the same problem where my icefaces components are unresponsive after the download of a text file.


All other non-icefaces components are responsive.

Also, the Icefaces components become responsive again after hitting the refresh button.

Any ideas how I can fix this issue ?

]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/3165.page#38873</guid>
				<link>http://www.icefaces.org/JForum/posts/list/3165.page#38873</link>
				<pubDate><![CDATA[Thu, 31 Jul 2008 22:45:27]]> GMT</pubDate>
				<author><![CDATA[ mchin]]></author>
			</item>
			<item>
				<title>Re:outputLink open document problem</title>
				<description><![CDATA[ try opening the link in a target hidden iframe]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/3165.page#38922</guid>
				<link>http://www.icefaces.org/JForum/posts/list/3165.page#38922</link>
				<pubDate><![CDATA[Fri, 1 Aug 2008 14:14:40]]> GMT</pubDate>
				<author><![CDATA[ ppronzola]]></author>
			</item>
			<item>
				<title>Re:outputLink open document problem</title>
				<description><![CDATA[ What was the solution for this? I am facing a similar problem at the moment, though I am not trying to download a file - I'm just trying to have a link that opens in another window, but the original window becomes unresponsive.

Thanks
]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/3165.page#45125</guid>
				<link>http://www.icefaces.org/JForum/posts/list/3165.page#45125</link>
				<pubDate><![CDATA[Tue, 13 Jan 2009 23:12:58]]> GMT</pubDate>
				<author><![CDATA[ glenn.molnar]]></author>
			</item>
	</channel>
</rss>
