Strange issue with AJAX update + file download

2014-04-10 Thread Tobias Gierke
Hi, We're using Wicket 1.5.11 with the approach described in https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow to trigger a file download from within a modal dialog. This all works fine, our problem is with the rendering of the page after the

Re: Strange issue with AJAX update + file download

2014-04-10 Thread Tobias Gierke
...sorry, forgot that sending attachments to mailing-lists does not generally work... http://picpaste.com/firebug.png http://picpaste.com/chrome_after_download.png Hi, We're using Wicket 1.5.11 with the approach described in

Re: Strange issue with AJAX update + file download

2014-04-10 Thread Ernesto Reinaldo Barreiro
Hi, I have no idea but something you can try is replacing target.appendJavaScript(setTimeout(\window.location.href=' + url + '\, 100);); with a bigger timeout... or maybe $(function() { window}); so that download is triggered once DOM is ready. On Thu, Apr 10, 2014 at 11:02 AM, Tobias

Re: Strange issue with AJAX update + file download

2014-04-10 Thread Tobias Gierke
Hi, Tried both your suggestions, unfortunately none of them worked :( Thanks anyway, Tobias Hi, I have no idea but something you can try is replacing target.appendJavaScript(setTimeout(\window.location.href=' + url + '\, 100);); with a bigger timeout... or maybe $(function() {

Re: Strange issue with AJAX update + file download

2014-04-10 Thread Ernesto Reinaldo Barreiro
Hi, On Thu, Apr 10, 2014 at 10:50 AM, Tobias Gierke tobias.gie...@voipfuture.com wrote: Hi, We're using Wicket 1.5.11 with the approach described in https://cwiki.apache.org/confluence/display/WICKET/ AJAX+update+and+file+download+in+one+blow to trigger a file download from within a

Creating a AjaxFallbackHeadersToolbar outside header.

2014-04-10 Thread chathuraka.waas
Hi, i'm trying to migrate my application from wicket 1.4 to 6.14. previously i was able to place a div inside a table and attach it with a AjaxFallbackHeadersToolbar. in 1.4 i was able to place the AjaxFallbackHeadersToolbar inside a tr element i wanted inside a table. but with 6.14 its

Download excel-file

2014-04-10 Thread Christoph.Manig
Hello, I want to download an excelfile, which will be created on the fly by clicking on a button. So I have created my own downloadButton. The excel-file will be created, it works fine but the download do not work. I have started my application in development mode, but no exception will be

Re: Download excel-file

2014-04-10 Thread Ernesto Reinaldo Barreiro
You cannot stream a PDF back to client via AJAX. Have a look at. https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow On Thu, Apr 10, 2014 at 11:47 AM, christoph.ma...@t-systems.com wrote: Hello, I want to download an excelfile, which will be created

AW: Download excel-file

2014-04-10 Thread Christoph.Manig
So I have to add the AjaxDownload to my form which add my DownloadButton? Like this: AJAXDownload download = new AJAXDownload() { @Override protected IResourceStream getResourceStream() { return createResourceStream(item.getModelObject()); } }; FormSlaReportModel

Re: Download excel-file

2014-04-10 Thread Ernesto Reinaldo Barreiro
Just follow the wiki: that's why it was created ;-) On Thu, Apr 10, 2014 at 12:01 PM, christoph.ma...@t-systems.com wrote: So I have to add the AjaxDownload to my form which add my DownloadButton? Like this: AJAXDownload download = new AJAXDownload() { @Override protected

Re: Strange issue with AJAX update + file download

2014-04-10 Thread Tobias Gierke
Hi, What do you exactly mean by the rendering of the page after download completed? You repaint a part of the screen via AJAX? And this is the one giving problem with images? Good point. I just investigated the AJAX response returned by the server when clicking the 'Start download' button on

Re: Strange issue with AJAX update + file download

2014-04-10 Thread Ernesto Reinaldo Barreiro
Hi, On Thu, Apr 10, 2014 at 12:13 PM, Tobias Gierke tobias.gie...@voipfuture.com wrote: Hi, What do you exactly mean by the rendering of the page after download completed? You repaint a part of the screen via AJAX? And this is the one giving problem with images? Good point. I just

Solved [ Re: Strange issue with AJAX update + file download ]

2014-04-10 Thread Tobias Gierke
Sorry for the noise, I just tried to validate my assumption by (again) setting the timeout to some really large value (20 seconds) and noticed that I screwed up while testing your initial suggestion , the changed timeout value was never in effect ... Raising the timeout value does in fact

Re: Strange issue with AJAX update + file download

2014-04-10 Thread Martin Grigorov
Hi, On Thu, Apr 10, 2014 at 1:13 PM, Tobias Gierke tobias.gie...@voipfuture.com wrote: Hi, What do you exactly mean by the rendering of the page after download completed? You repaint a part of the screen via AJAX? And this is the one giving problem with images? Good point. I just

Re: Strange issue with AJAX update + file download

2014-04-10 Thread Tobias Gierke
Hi, Hi, On Thu, Apr 10, 2014 at 1:13 PM, Tobias Gierke tobias.gie...@voipfuture.com wrote: Hi, What do you exactly mean by the rendering of the page after download completed? You repaint a part of the screen via AJAX? And this is the one giving problem with images? Good point. I just

Re: Strange issue with AJAX update + file download

2014-04-10 Thread Tobias Gierke
On Thu, Apr 10, 2014 at 1:13 PM, Tobias Gierke tobias.gie...@voipfuture.com wrote: Hi, What do you exactly mean by the rendering of the page after download completed? You repaint a part of the screen via AJAX? And this is the one giving problem with images? Good point. I just

Re: Strange issue with AJAX update + file download

2014-04-10 Thread Ernesto Reinaldo Barreiro
Hi, On Thu, Apr 10, 2014 at 12:36 PM, Tobias Gierke tobias.gie...@voipfuture.com wrote: Hi, Hi, On Thu, Apr 10, 2014 at 1:13 PM, Tobias Gierke tobias.gie...@voipfuture.com wrote: Hi, What do you exactly mean by the rendering of the page after download completed? You repaint

Re: Strange issue with AJAX update + file download

2014-04-10 Thread Martin Grigorov
On Thu, Apr 10, 2014 at 1:44 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi, On Thu, Apr 10, 2014 at 12:36 PM, Tobias Gierke tobias.gie...@voipfuture.com wrote: Hi, Hi, On Thu, Apr 10, 2014 at 1:13 PM, Tobias Gierke tobias.gie...@voipfuture.com wrote:

AW: Download excel-file

2014-04-10 Thread Christoph.Manig
I created the class AJAXDownload and copied your code. Then I added the AJAXDownload to my download button like this: @Override public void onSubmit(AjaxRequestTarget target, Form form) { target.add(feedback); final SlaReportModel slaReportModel =

Re: Error loading jQuery JS in wicket 6.7.0 (IE)

2014-04-10 Thread dmalescot
It works since 6.14.0 ;) Thanks a lot -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-loading-jQuery-JS-in-wicket-6-7-0-IE-tp4665308p4665354.html Sent from the Users forum mailing list archive at Nabble.com.

Wicket 6.14.0 - Error in autocomplete component

2014-04-10 Thread dmalescot
Hi, Since wicket 6.14, autocomplete component throw an error when positionning autocomplete-menu. TypeError: $(...).offset is not a function In fact, in wicket-autocomplete.js (line 592), getPosition use $(obj) instead of Wicket.$(obj) : Maybe a can implement a workaround ? Or i need to wait

Re: Wicket 6.14.0 - Error in autocomplete component

2014-04-10 Thread Martin Grigorov
Hi, we are not aware of this issue - https://issues.apache.org/jira/issues/?jql=project%20%3D%20WICKET%20AND%20fixVersion%20%3D%206.15.0 Please file a bug report with a quickstart app. 6.15 will be cut tomorrow so most probably this will be fixed for 6.16. Martin Grigorov Wicket Training and

Re: Wicket 6.14.0 - Error in autocomplete component

2014-04-10 Thread dmalescot
hi, I'm really sorry, but I do not have time to make a quickstart :( I think bug is really easy to fix : line 592 of wicket-autocomplete.js -- Wicket.$(obj) instead of $(obj) If i open a JIRA (without quickstart, but with fix solution) is it possible to fox it for 6.15 ? If no, how i can

Re: Wicket 6.14.0 - Error in autocomplete component

2014-04-10 Thread dmalescot
I just opened a JIRA : https://issues.apache.org/jira/browse/WICKET-5556 Thanks for quick fix -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-14-0-Error-in-autocomplete-component-tp4665355p4665358.html Sent from the Users forum mailing list archive at

Re: Form component's model#setObject getting called twice per submit when inside a Border

2014-04-10 Thread Craig L
Hi Sven, Thank you for your reply. Sorry for the slow response. Got dragged into a different issue. Hopefully these are the stack traces you asked for on the double setObject call. First time through setObject for a Text Field change -- View this message in context:

Re: Strange issue with AJAX update + file download

2014-04-10 Thread Jesse Long
On 10/04/2014 12:53, Martin Grigorov wrote: On Thu, Apr 10, 2014 at 1:44 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi, On Thu, Apr 10, 2014 at 12:36 PM, Tobias Gierke tobias.gie...@voipfuture.com wrote: Hi, Hi, On Thu, Apr 10, 2014 at 1:13 PM, Tobias Gierke

Re: Strange issue with AJAX update + file download

2014-04-10 Thread Ernesto Reinaldo Barreiro
one solution might be to pull document from a mounted resource: which are not locked. On Thu, Apr 10, 2014 at 6:16 PM, Jesse Long j...@unknown.za.net wrote: On 10/04/2014 12:53, Martin Grigorov wrote: On Thu, Apr 10, 2014 at 1:44 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote:

AjaxPagingNavigator

2014-04-10 Thread pradeepmohite07
Hi, I am using AjaxPagingNavigator and its working fine. but i have add it twice above and below the data table. after adding it twice , when i navigate by clicking on link in one of then it navigate. but another AjaxPagingNavigator for same datatable doesnt get refreshed. any idea how to solve

Re: AjaxPagingNavigator

2014-04-10 Thread Sven Meier
Hi, on each AjaxRequest, AjaxPagingNavigator updates the parent of the pageable, see AjaxPagingNavigator#onAjaxEvent(). So make sure, your pageable repeater has the same parent as your two navigators: div wicket:id=parent div wicket:id=topNavigator/div table tr

Wicket CDI application junit test

2014-04-10 Thread Duke
Hi everyone. I'm trying to write some tests for my wicket-cdi application. But I can't init wicket WebApplication, resulting: javax.naming.NamingException: Lookup failed for 'java:comp/BeanManager' in