
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Wicket &#8211; Ajax like file upload on a modal window</title>
	<atom:link href="http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/</link>
	<description>Less words, more code</description>
	<lastBuildDate>Sun, 17 Jan 2010 20:52:01 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: msj121</title>
		<link>http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/comment-page-1/#comment-1061</link>
		<dc:creator>msj121</dc:creator>
		<pubDate>Sun, 17 Jan 2010 20:52:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.dooriented.com/blog/?p=3#comment-1061</guid>
		<description>btw, it seems to have to do with the iframe... I also have a weird feeling it might have to do with the pagelink, not sure though....

anyone see this before?</description>
		<content:encoded><![CDATA[<p>btw, it seems to have to do with the iframe&#8230; I also have a weird feeling it might have to do with the pagelink, not sure though&#8230;.</p>
<p>anyone see this before?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: msj121</title>
		<link>http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/comment-page-1/#comment-1058</link>
		<dc:creator>msj121</dc:creator>
		<pubDate>Sun, 17 Jan 2010 15:34:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.dooriented.com/blog/?p=3#comment-1058</guid>
		<description>Hey,

I seem to always get a page expired error when opening my modal window containing the uploadpanel (without any interaction). The generated code:

            
                
                    Video
                    
                        Name:&#160;
                        Category:&#160;
Choose One

Home
Videos

                        
          &lt;!-- I put the callback snippet at the body so that is rendered for each panel instead of once --&gt;
          function onUpload_fileUploader345(clientFileName, newFileUrl) {window.setTimeout(function() { var wcall=wicketAjaxGet(&#039;?wicket:interface=:53:editoraddholder:editoraddvideo:ajaxform:fileUploader::IBehaviorListener:0:&amp;newFileUrl=&#039; + encodeURIComponent(newFileUrl) + &#039;&amp;&amp;clientFileName=&#039; + encodeURIComponent(clientFileName),null,null, function() {return Wicket.$(&#039;fileUploader345&#039;) != null;}.bind(this)); }, 0 )}
          
        

                        Description: 
                        
                        Date Added: 1/17/10
                        Views:&#160;0&#160;  Rating:&#160;0

                        
                        Submit&#160;Cancel
                    
                
            </description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>I seem to always get a page expired error when opening my modal window containing the uploadpanel (without any interaction). The generated code:</p>
<p>                    Video</p>
<p>                        Name:&nbsp;<br />
                        Category:&nbsp;<br />
Choose One</p>
<p>Home<br />
Videos</p>
<p>          <!-- I put the callback snippet at the body so that is rendered for each panel instead of once --><br />
          function onUpload_fileUploader345(clientFileName, newFileUrl) {window.setTimeout(function() { var wcall=wicketAjaxGet(&#8217;?wicket:interface=:53:editoraddholder:editoraddvideo:ajaxform:fileUploader::IBehaviorListener:0:&amp;amp;newFileUrl=&#8217; + encodeURIComponent(newFileUrl) + &#8216;&amp;&amp;clientFileName=&#8217; + encodeURIComponent(clientFileName),null,null, function() {return Wicket.$(&#8217;fileUploader345&#8242;) != null;}.bind(this)); }, 0 )}</p>
<p>                        Description: </p>
<p>                        Date Added: 1/17/10<br />
                        Views:&nbsp;0&nbsp;  Rating:&nbsp;0</p>
<p>                        Submit&nbsp;Cancel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wolf19</title>
		<link>http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/comment-page-1/#comment-674</link>
		<dc:creator>Wolf19</dc:creator>
		<pubDate>Sun, 11 Oct 2009 01:36:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.dooriented.com/blog/?p=3#comment-674</guid>
		<description>In looking at your site I say an even stronger thank you. ,</description>
		<content:encoded><![CDATA[<p>In looking at your site I say an even stronger thank you. ,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/comment-page-1/#comment-657</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Wed, 19 Aug 2009 18:43:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.dooriented.com/blog/?p=3#comment-657</guid>
		<description>Hi, I am new with the Wicket. I wanted to implement a file upload form in to panel. You wrote it was not recommended. However I want to check it out for sure because I have a tabbed panel and on the one of them I want to put file upload form. Is it possible and do you know any samples ?
thanks 
mark</description>
		<content:encoded><![CDATA[<p>Hi, I am new with the Wicket. I wanted to implement a file upload form in to panel. You wrote it was not recommended. However I want to check it out for sure because I have a tabbed panel and on the one of them I want to put file upload form. Is it possible and do you know any samples ?<br />
thanks<br />
mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blue</title>
		<link>http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/comment-page-1/#comment-642</link>
		<dc:creator>blue</dc:creator>
		<pubDate>Sun, 28 Jun 2009 02:12:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.dooriented.com/blog/?p=3#comment-642</guid>
		<description>@Martin

Thanks!!!  Replacing the &amp;amp --&gt; &amp; worked for me too!  I have been tracing around this thing for the past 2 hours trying to figure out what was going on.  You saved me quite a bit of time, thanks.</description>
		<content:encoded><![CDATA[<p>@Martin</p>
<p>Thanks!!!  Replacing the &amp;amp &#8211;&gt; &amp; worked for me too!  I have been tracing around this thing for the past 2 hours trying to figure out what was going on.  You saved me quite a bit of time, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Sherwood</title>
		<link>http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/comment-page-1/#comment-622</link>
		<dc:creator>Martin Sherwood</dc:creator>
		<pubDate>Mon, 08 Jun 2009 15:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.dooriented.com/blog/?p=3#comment-622</guid>
		<description>I experienced the same problem as Andrew mentions in the first comment, namely that the parameter values for filename and newFileUrl were always null in the onUploadFinished method.

Replacing the &quot;&amp;&quot; with &quot;&amp;&quot; in the generateCallbackScript method in the inner class OnUploadedBehavior of UploadPanel solved it for me.

Cheers,
Martin</description>
		<content:encoded><![CDATA[<p>I experienced the same problem as Andrew mentions in the first comment, namely that the parameter values for filename and newFileUrl were always null in the onUploadFinished method.</p>
<p>Replacing the &#8220;&amp;amp;&#8221; with &#8220;&amp;&#8221; in the generateCallbackScript method in the inner class OnUploadedBehavior of UploadPanel solved it for me.</p>
<p>Cheers,<br />
Martin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/comment-page-1/#comment-618</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Mon, 01 Jun 2009 09:02:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.dooriented.com/blog/?p=3#comment-618</guid>
		<description>Hey,

I solved all my issues - last one :)

There seem to be 2 requests from the browser when displaying the iframe so the &quot;onUploaded&quot; WebComponent.onComponentTagBody() gets called twice!

This also happens after clicking the ajaxlink&#039;s submit link.  The UploadIFrame.onsubmit() is called once, but the WebComponent.onComponentTagBody() gets called twice again because the browser is issueing 2 requests!!

I can&#039;t see any re-directs happening...

Have you seen this double-request behaviour regarding iframes before?

Thanks
Jeremy</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>I solved all my issues &#8211; last one <img src='http://www.dooriented.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>There seem to be 2 requests from the browser when displaying the iframe so the &#8220;onUploaded&#8221; WebComponent.onComponentTagBody() gets called twice!</p>
<p>This also happens after clicking the ajaxlink&#8217;s submit link.  The UploadIFrame.onsubmit() is called once, but the WebComponent.onComponentTagBody() gets called twice again because the browser is issueing 2 requests!!</p>
<p>I can&#8217;t see any re-directs happening&#8230;</p>
<p>Have you seen this double-request behaviour regarding iframes before?</p>
<p>Thanks<br />
Jeremy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/comment-page-1/#comment-615</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Wed, 27 May 2009 11:41:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.dooriented.com/blog/?p=3#comment-615</guid>
		<description>Hey,

Sorry to disturb you again.

I have an extra field to your upload form.  Once upload has completed I want to reset the form&#039;s values.  At its simplest I could reload the iFrame but i&#039;m not sure how to do this... any pointers?

Cheers
Jeremy</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>Sorry to disturb you again.</p>
<p>I have an extra field to your upload form.  Once upload has completed I want to reset the form&#8217;s values.  At its simplest I could reload the iFrame but i&#8217;m not sure how to do this&#8230; any pointers?</p>
<p>Cheers<br />
Jeremy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/comment-page-1/#comment-607</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Sat, 23 May 2009 12:21:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.dooriented.com/blog/?p=3#comment-607</guid>
		<description>Hey,

V. quickly - can you email me your example code zipped?? Reason i ask is because when i cut &#039;n pasted the code above there are some HTML entities in the OnUploadedBehavior() inner class&#039;s generateCallbackScript() method which I think have doubles/inaccuracies due to some &#039;escaping&#039; issue when displaying your HTML in this web page.  This could be why the resulting Ajax request once the file has uploaded is not reaching the inner class&#039;s respond() method...

Cheers again
Jeremy</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>V. quickly &#8211; can you email me your example code zipped?? Reason i ask is because when i cut &#8216;n pasted the code above there are some HTML entities in the OnUploadedBehavior() inner class&#8217;s generateCallbackScript() method which I think have doubles/inaccuracies due to some &#8216;escaping&#8217; issue when displaying your HTML in this web page.  This could be why the resulting Ajax request once the file has uploaded is not reaching the inner class&#8217;s respond() method&#8230;</p>
<p>Cheers again<br />
Jeremy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/comment-page-1/#comment-604</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 21 May 2009 14:07:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.dooriented.com/blog/?p=3#comment-604</guid>
		<description>Hello Jeremy,

Considering I&#039;ve been getting a lot of feedback on this post, I&#039;m planning on doing a new post for this Ajax file upload using the Modal Window Wicket component.

I realize the code in this post cannot be used as is so I will upload a wicket component designed to be used in all sorts of situations, that people can download and play with. I will answer your questions in that post. 

I think it will be available later on this week, depending on the work load I have. 

Cheers</description>
		<content:encoded><![CDATA[<p>Hello Jeremy,</p>
<p>Considering I&#8217;ve been getting a lot of feedback on this post, I&#8217;m planning on doing a new post for this Ajax file upload using the Modal Window Wicket component.</p>
<p>I realize the code in this post cannot be used as is so I will upload a wicket component designed to be used in all sorts of situations, that people can download and play with. I will answer your questions in that post. </p>
<p>I think it will be available later on this week, depending on the work load I have. </p>
<p>Cheers</p>
]]></content:encoded>
	</item>
</channel>
</rss>
