Re: Form Validation / Field visibility
Got it. Thank you! Em 3 de nov de 2016 20:35, "Sven Meier"escreveu: > Hi, > > your *IForm*Validator complains about some of its dependent components > being invisible. So no need to remove any validators. > > Your IFormValidator's getDependentFormComponents() should only return > visible components. > > Have fun > Sven > > > Am 03.11.2016 um 21:40 schrieb Marcel Barbosa Pinto: > >> Hello, >> >> I have a form which has some fields with validation attached to them. >> When the user authenticates I hide some form elements. >> >> When the form is submitted I receive a Warn log entry: >> >> o.a.wicket.markup.html.form.Form - IFormValidator in form `form` depends >> on >> a component that has been removed from the page or is no longer visible. >> Offending component id `email`. >> >> Should I always manually remove the validators from the components when >> hiding them? >> >> Thanks. >> >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Form Validation / Field visibility
Hi, your *IForm*Validator complains about some of its dependent components being invisible. So no need to remove any validators. Your IFormValidator's getDependentFormComponents() should only return visible components. Have fun Sven Am 03.11.2016 um 21:40 schrieb Marcel Barbosa Pinto: Hello, I have a form which has some fields with validation attached to them. When the user authenticates I hide some form elements. When the form is submitted I receive a Warn log entry: o.a.wicket.markup.html.form.Form - IFormValidator in form `form` depends on a component that has been removed from the page or is no longer visible. Offending component id `email`. Should I always manually remove the validators from the components when hiding them? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Form Validation / Field visibility
Hello, I have a form which has some fields with validation attached to them. When the user authenticates I hide some form elements. When the form is submitted I receive a Warn log entry: o.a.wicket.markup.html.form.Form - IFormValidator in form `form` depends on a component that has been removed from the page or is no longer visible. Offending component id `email`. Should I always manually remove the validators from the components when hiding them? Thanks. -- Marcel Barbosa Pinto 55 11 98255 8288
Re: Web Socket Exceptions.
Thanks for looking Martin On 3 November 2016 at 09:07, Martin Grigorovwrote: > Hi, > > It is a bug in Wicket Native WebSocket. > https://github.com/apache/wicket/blob/d9d142b0738e289e639165523c4190 > 727e281519/wicket-native-websocket/wicket-native- > websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/ > AbstractWebSocketProcessor.java#L310 > returns a null and still we try to push the message. > > Please file a ticket in JIRA! Thanks! > Jira created https://issues.apache.org/jira/browse/WICKET-6267 > > > What is the idea of your implementation? To notify the other users of the > app that some user have left? Like in a chat app? > Similar to a chat app. I need to track who is available online, so they can be notified when something that requires their approval becomes available. > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Wed, Nov 2, 2016 at 5:01 PM, Peter Henderson < > peter.hender...@starjar.com > > wrote: > > > Hi all. > > > > wicket 7.3 > > tomcat 8.5.5 > > > > > > I'm starting to see many more exceptions in relation to web sockets. > > > > [1] > > > > I have a HttpSessionListener, which sends a message to an actor when a > > session is destroyed (aka user logout). The actor eventually broadcasts > a > > web socket message. > > > > Am I doing something wrong in my code [2]? > > > > > > > > > > [1] > > > > oawpwa.AbstractWebSocketProcessor An error occurred during processing > of a > > WebSocket message > > java.lang.IllegalArgumentException: Argument 'component' may not be > null. > > at org.apache.wicket.util.lang.Args.notNull(Args.java:41) > > at > > org.apache.wicket.protocol.ws.api.WebSocketRequestHandler.< > > init>(WebSocketRequestHandler.java:59) > > at > > org.apache.wicket.protocol.ws.WebSocketSettings. > > newWebSocketRequestHandler(WebSocketSettings.java:220) > > at > > org.apache.wicket.protocol.ws.api.AbstractWebSocketProcessor. > > broadcastMessage(AbstractWebSocketProcessor.java:245) > > at > > org.apache.wicket.protocol.ws.api.AbstractWebSocketConnection. > sendMessage( > > AbstractWebSocketConnection.java:43) > > at > > org.apache.wicket.protocol.ws.api.WebSocketPushBroadcaster$1.run( > > WebSocketPushBroadcaster.java:124) > > at > > org.apache.wicket.protocol.ws.WebSocketSettings$SameThreadExecutor.run( > > WebSocketSettings.java:246) > > at > > org.apache.wicket.protocol.ws.api.WebSocketPushBroadcaster.process( > > WebSocketPushBroadcaster.java:119) > > at > > org.apache.wicket.protocol.ws.api.WebSocketPushBroadcaster.broadcastAll( > > WebSocketPushBroadcaster.java:109) > > at > > com.starjar.engine.LoggedInUserTrackerActor.broadcastStats( > > LoggedInUserTrackerActor.scala:69) > > at > > com.starjar.engine.LoggedInUserTrackerActor$$ > > anonfun$receive$1.applyOrElse(LoggedInUserTrackerActor.scala:125) > > at akka.actor.Actor$class.aroundReceive(Actor.scala:467) > > at > > com.starjar.engine.LoggedInUserTrackerActor.aroundReceive( > > LoggedInUserTrackerActor.scala:31) > > at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516) > > at akka.actor.ActorCell.invoke(ActorCell.scala:487) > > at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238) > > at akka.dispatch.Mailbox.run(Mailbox.scala:220) > > at > > akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec( > > AbstractDispatcher.scala:397) > > at > > scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) > > at > > scala.concurrent.forkjoin.ForkJoinPool$WorkQueue. > > runTask(ForkJoinPool.java:1339) > > at > > scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) > > at > > scala.concurrent.forkjoin.ForkJoinWorkerThread.run( > > ForkJoinWorkerThread.java:107) > > > > > > > > > > > > [2] The broadcasting code running in my actor. > > > > private def buildLoggedInUserMessage(): CurrentlyLoggedInUsers = { > > val response = ... /* snip snip snip */ > > response > > } > > > > def broadcastStats(): Unit = { > > val application = WicketStarjarApplication.get() > > val webSocketSettings = WebSocketSettings.Holder.get(application) > > val broadcaster = new > > WebSocketPushBroadcaster(webSocketSettings.getConnectionRegistry()) > > broadcaster.broadcastAll(application, buildLoggedInUserMessage) > > } > > > > > > > > > > > > > > Thanks > > > > Peter. > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > Peter Henderson > > > -- Peter Henderson Director Starjar Ltd. www.starjar.com 0330 088 1662
Re: Web Socket Exceptions.
Hi, It is a bug in Wicket Native WebSocket. https://github.com/apache/wicket/blob/d9d142b0738e289e639165523c4190727e281519/wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java#L310 returns a null and still we try to push the message. Please file a ticket in JIRA! Thanks! What is the idea of your implementation? To notify the other users of the app that some user have left? Like in a chat app? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Nov 2, 2016 at 5:01 PM, Peter Hendersonwrote: > Hi all. > > wicket 7.3 > tomcat 8.5.5 > > > I'm starting to see many more exceptions in relation to web sockets. > > [1] > > I have a HttpSessionListener, which sends a message to an actor when a > session is destroyed (aka user logout). The actor eventually broadcasts a > web socket message. > > Am I doing something wrong in my code [2]? > > > > > [1] > > oawpwa.AbstractWebSocketProcessor An error occurred during processing of a > WebSocket message > java.lang.IllegalArgumentException: Argument 'component' may not be null. > at org.apache.wicket.util.lang.Args.notNull(Args.java:41) > at > org.apache.wicket.protocol.ws.api.WebSocketRequestHandler.< > init>(WebSocketRequestHandler.java:59) > at > org.apache.wicket.protocol.ws.WebSocketSettings. > newWebSocketRequestHandler(WebSocketSettings.java:220) > at > org.apache.wicket.protocol.ws.api.AbstractWebSocketProcessor. > broadcastMessage(AbstractWebSocketProcessor.java:245) > at > org.apache.wicket.protocol.ws.api.AbstractWebSocketConnection.sendMessage( > AbstractWebSocketConnection.java:43) > at > org.apache.wicket.protocol.ws.api.WebSocketPushBroadcaster$1.run( > WebSocketPushBroadcaster.java:124) > at > org.apache.wicket.protocol.ws.WebSocketSettings$SameThreadExecutor.run( > WebSocketSettings.java:246) > at > org.apache.wicket.protocol.ws.api.WebSocketPushBroadcaster.process( > WebSocketPushBroadcaster.java:119) > at > org.apache.wicket.protocol.ws.api.WebSocketPushBroadcaster.broadcastAll( > WebSocketPushBroadcaster.java:109) > at > com.starjar.engine.LoggedInUserTrackerActor.broadcastStats( > LoggedInUserTrackerActor.scala:69) > at > com.starjar.engine.LoggedInUserTrackerActor$$ > anonfun$receive$1.applyOrElse(LoggedInUserTrackerActor.scala:125) > at akka.actor.Actor$class.aroundReceive(Actor.scala:467) > at > com.starjar.engine.LoggedInUserTrackerActor.aroundReceive( > LoggedInUserTrackerActor.scala:31) > at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516) > at akka.actor.ActorCell.invoke(ActorCell.scala:487) > at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238) > at akka.dispatch.Mailbox.run(Mailbox.scala:220) > at > akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec( > AbstractDispatcher.scala:397) > at > scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) > at > scala.concurrent.forkjoin.ForkJoinPool$WorkQueue. > runTask(ForkJoinPool.java:1339) > at > scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) > at > scala.concurrent.forkjoin.ForkJoinWorkerThread.run( > ForkJoinWorkerThread.java:107) > > > > > > [2] The broadcasting code running in my actor. > > private def buildLoggedInUserMessage(): CurrentlyLoggedInUsers = { > val response = ... /* snip snip snip */ > response > } > > def broadcastStats(): Unit = { > val application = WicketStarjarApplication.get() > val webSocketSettings = WebSocketSettings.Holder.get(application) > val broadcaster = new > WebSocketPushBroadcaster(webSocketSettings.getConnectionRegistry()) > broadcaster.broadcastAll(application, buildLoggedInUserMessage) > } > > > > > > > Thanks > > Peter. > > > > > > > > > > > > > -- > Peter Henderson >
Re: WebSocket close is being called if AjaxDownloader is used
+1 for wicket-stuff On Thu, Nov 3, 2016 at 9:50 AM, Martin Grigorovwrote: > On Thu, Nov 3, 2016 at 9:46 AM, Maxim Solodovnik > wrote: > > > I was hoping to get answer like: in 7.x you should use .xxx :))) > > Going to create example on github and will send it for review :) > > > > Good! Thanks! > I think we should add AjaxDownload class either to Wicket core or at least > WicketStuff > I've seen it being used in many projects > > > > > > On Thu, Nov 3, 2016 at 3:43 PM, Martin Grigorov > > wrote: > > > > > On Thu, Nov 3, 2016 at 9:40 AM, Maxim Solodovnik > > > > wrote: > > > > > > > It seems iframe is the only option :((( > > > > > > > > > > Why so sad ? > > > iframe is a good option > > > > > > > > > > here is the JS plugin wrapping this idea: > > > > http://johnculviner.com/jquery-file-download-plugin- > > > > for-ajax-like-feature-rich-file-downloads/ > > > > going to perform additional search > > > > > > > > Thanks for the idea! > > > > > > > > On Thu, Nov 3, 2016 at 3:36 PM, Ernesto Reinaldo Barreiro < > > > > reier...@gmail.com> wrote: > > > > > > > > > or maybe use a hidden iframe to trigger download... > > > > > > > > > > On Thu, Nov 3, 2016 at 9:28 AM, Ernesto Reinaldo Barreiro < > > > > > reier...@gmail.com> wrote: > > > > > > > > > > > I do not know if this is possible but > > > > > > > > > > > > 1- Open a new tab > > > > > > 2- Set location to download URL > > > > > > 3- Close the new tab > > > > > > > > > > > > That way (maybe) page does not close WebSocket connection. It > would > > > > still > > > > > > be "AJAX"... > > > > > > > > > > > > > > > > > > On Thu, Nov 3, 2016 at 9:04 AM, Maxim Solodovnik < > > > solomax...@gmail.com > > > > > > > > > > > wrote: > > > > > > > > > > > >> I'm afraid It would be not really Ajax . > > > > > >> > > > > > >> On Thu, Nov 3, 2016 at 3:03 PM, Ernesto Reinaldo Barreiro < > > > > > >> reier...@gmail.com> wrote: > > > > > >> > > > > > >> > maybe open a second browser tab and do the download there... > > > > > >> > > > > > > >> > On Thu, Nov 3, 2016 at 8:51 AM, Maxim Solodovnik < > > > > > solomax...@gmail.com> > > > > > >> > wrote: > > > > > >> > > > > > > >> > > I'll try to create quick-start ASAP > > > > > >> > > > > > > > >> > > On Thu, Nov 3, 2016 at 2:51 PM, Maxim Solodovnik < > > > > > >> solomax...@gmail.com> > > > > > >> > > wrote: > > > > > >> > > > > > > > >> > > > AjaxDownload was for wicket 1.5.x (or maybe 6.x) > > > > > >> > > > maybe it can be enhanced to work without unload? > > > > > >> > > > > > > > > >> > > > On Thu, Nov 3, 2016 at 2:46 PM, Sven Meier < > s...@meiers.net > > > > > > > > wrote: > > > > > >> > > > > > > > > >> > > >> AjaxDownload changes the window location - the browser > > > probably > > > > > >> > prepares > > > > > >> > > >> unloading of the page, before opening the attached > download > > > in > > > > a > > > > > >> > > separate > > > > > >> > > >> window. > > > > > >> > > >> > > > > > >> > > >> Sven > > > > > >> > > >> > > > > > >> > > >> > > > > > >> > > >> > > > > > >> > > >> Am 03.11.2016 um 08:33 schrieb Martin Grigorov: > > > > > >> > > >> > > > > > >> > > >>> Hi Maxim, > > > > > >> > > >>> > > > > > >> > > >>> I don't see any relation between those. > > > > > >> > > >>> If it is easy to reproduce please create a quickstart. > > > > > >> > > >>> > > > > > >> > > >>> Martin Grigorov > > > > > >> > > >>> Wicket Training and Consulting > > > > > >> > > >>> https://twitter.com/mtgrigorov > > > > > >> > > >>> > > > > > >> > > >>> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik < > > > > > >> > solomax...@gmail.com > > > > > >> > > > > > > > > >> > > >>> wrote: > > > > > >> > > >>> > > > > > >> > > >>> Hello, > > > > > >> > > > > > > > >> > > Recently we found weird behavior of AjaxDownloader > > (similar > > > > to > > > > > >> this > > > > > >> > > [1] > > > > > >> > > one) > > > > > >> > > For some reason at the moment download is initiated > > > > > >> > > WebSocketBehavior::onClose is being called > > > > > >> > > What is the reason for this? > > > > > >> > > > > > > > >> > > > > > > > >> > > https://cwiki.apache.org/confluence/display/WICKET/ > > > > > >> > > AJAX+update+and+file+download+in+one+blow > > > > > >> > > > > > > > >> > > -- > > > > > >> > > WBR > > > > > >> > > Maxim aka solomax > > > > > >> > > > > > > > >> > > > > > > > >> > > >> > > > > > >> > > >> -- > > -- > > > > > >> - > > > > > >> > > >> To unsubscribe, e-mail: users-unsubscribe@wicket. > > apache.org > > > > > >> > > >> For additional commands, e-mail: > > > users-h...@wicket.apache.org > > > > > >> > > >> > > > > > >> > > >> > > > > > >> > > > > > > > > >> > > > > > > > > >> > > > -- > > > > > >> > > > WBR > > > > > >> > > > Maxim aka solomax > > > > > >> > > > > > > > > >> > > > > > > > >> > >
Re: WebSocket close is being called if AjaxDownloader is used
On Thu, Nov 3, 2016 at 9:46 AM, Maxim Solodovnikwrote: > I was hoping to get answer like: in 7.x you should use .xxx :))) > Going to create example on github and will send it for review :) > Good! Thanks! I think we should add AjaxDownload class either to Wicket core or at least WicketStuff I've seen it being used in many projects > > On Thu, Nov 3, 2016 at 3:43 PM, Martin Grigorov > wrote: > > > On Thu, Nov 3, 2016 at 9:40 AM, Maxim Solodovnik > > wrote: > > > > > It seems iframe is the only option :((( > > > > > > > Why so sad ? > > iframe is a good option > > > > > > > here is the JS plugin wrapping this idea: > > > http://johnculviner.com/jquery-file-download-plugin- > > > for-ajax-like-feature-rich-file-downloads/ > > > going to perform additional search > > > > > > Thanks for the idea! > > > > > > On Thu, Nov 3, 2016 at 3:36 PM, Ernesto Reinaldo Barreiro < > > > reier...@gmail.com> wrote: > > > > > > > or maybe use a hidden iframe to trigger download... > > > > > > > > On Thu, Nov 3, 2016 at 9:28 AM, Ernesto Reinaldo Barreiro < > > > > reier...@gmail.com> wrote: > > > > > > > > > I do not know if this is possible but > > > > > > > > > > 1- Open a new tab > > > > > 2- Set location to download URL > > > > > 3- Close the new tab > > > > > > > > > > That way (maybe) page does not close WebSocket connection. It would > > > still > > > > > be "AJAX"... > > > > > > > > > > > > > > > On Thu, Nov 3, 2016 at 9:04 AM, Maxim Solodovnik < > > solomax...@gmail.com > > > > > > > > > wrote: > > > > > > > > > >> I'm afraid It would be not really Ajax . > > > > >> > > > > >> On Thu, Nov 3, 2016 at 3:03 PM, Ernesto Reinaldo Barreiro < > > > > >> reier...@gmail.com> wrote: > > > > >> > > > > >> > maybe open a second browser tab and do the download there... > > > > >> > > > > > >> > On Thu, Nov 3, 2016 at 8:51 AM, Maxim Solodovnik < > > > > solomax...@gmail.com> > > > > >> > wrote: > > > > >> > > > > > >> > > I'll try to create quick-start ASAP > > > > >> > > > > > > >> > > On Thu, Nov 3, 2016 at 2:51 PM, Maxim Solodovnik < > > > > >> solomax...@gmail.com> > > > > >> > > wrote: > > > > >> > > > > > > >> > > > AjaxDownload was for wicket 1.5.x (or maybe 6.x) > > > > >> > > > maybe it can be enhanced to work without unload? > > > > >> > > > > > > > >> > > > On Thu, Nov 3, 2016 at 2:46 PM, Sven Meier > > > > > wrote: > > > > >> > > > > > > > >> > > >> AjaxDownload changes the window location - the browser > > probably > > > > >> > prepares > > > > >> > > >> unloading of the page, before opening the attached download > > in > > > a > > > > >> > > separate > > > > >> > > >> window. > > > > >> > > >> > > > > >> > > >> Sven > > > > >> > > >> > > > > >> > > >> > > > > >> > > >> > > > > >> > > >> Am 03.11.2016 um 08:33 schrieb Martin Grigorov: > > > > >> > > >> > > > > >> > > >>> Hi Maxim, > > > > >> > > >>> > > > > >> > > >>> I don't see any relation between those. > > > > >> > > >>> If it is easy to reproduce please create a quickstart. > > > > >> > > >>> > > > > >> > > >>> Martin Grigorov > > > > >> > > >>> Wicket Training and Consulting > > > > >> > > >>> https://twitter.com/mtgrigorov > > > > >> > > >>> > > > > >> > > >>> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik < > > > > >> > solomax...@gmail.com > > > > >> > > > > > > > >> > > >>> wrote: > > > > >> > > >>> > > > > >> > > >>> Hello, > > > > >> > > > > > > >> > > Recently we found weird behavior of AjaxDownloader > (similar > > > to > > > > >> this > > > > >> > > [1] > > > > >> > > one) > > > > >> > > For some reason at the moment download is initiated > > > > >> > > WebSocketBehavior::onClose is being called > > > > >> > > What is the reason for this? > > > > >> > > > > > > >> > > > > > > >> > > https://cwiki.apache.org/confluence/display/WICKET/ > > > > >> > > AJAX+update+and+file+download+in+one+blow > > > > >> > > > > > > >> > > -- > > > > >> > > WBR > > > > >> > > Maxim aka solomax > > > > >> > > > > > > >> > > > > > > >> > > >> > > > > >> > > >> -- > -- > > > > >> - > > > > >> > > >> To unsubscribe, e-mail: users-unsubscribe@wicket. > apache.org > > > > >> > > >> For additional commands, e-mail: > > users-h...@wicket.apache.org > > > > >> > > >> > > > > >> > > >> > > > > >> > > > > > > > >> > > > > > > > >> > > > -- > > > > >> > > > WBR > > > > >> > > > Maxim aka solomax > > > > >> > > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > -- > > > > >> > > WBR > > > > >> > > Maxim aka solomax > > > > >> > > > > > > >> > > > > > >> > > > > > >> > > > > > >> > -- > > > > >> > Regards - Ernesto Reinaldo Barreiro > > > > >> > > > > > >> > > > > >> > > > > >> > > > > >> -- > > > > >> WBR > > > > >> Maxim aka solomax > > > > >> > > > > > > > > > > > > > > > > > > > > -- > > > > > Regards - Ernesto Reinaldo
Re: WebSocket close is being called if AjaxDownloader is used
I was hoping to get answer like: in 7.x you should use .xxx :))) Going to create example on github and will send it for review :) On Thu, Nov 3, 2016 at 3:43 PM, Martin Grigorovwrote: > On Thu, Nov 3, 2016 at 9:40 AM, Maxim Solodovnik > wrote: > > > It seems iframe is the only option :((( > > > > Why so sad ? > iframe is a good option > > > > here is the JS plugin wrapping this idea: > > http://johnculviner.com/jquery-file-download-plugin- > > for-ajax-like-feature-rich-file-downloads/ > > going to perform additional search > > > > Thanks for the idea! > > > > On Thu, Nov 3, 2016 at 3:36 PM, Ernesto Reinaldo Barreiro < > > reier...@gmail.com> wrote: > > > > > or maybe use a hidden iframe to trigger download... > > > > > > On Thu, Nov 3, 2016 at 9:28 AM, Ernesto Reinaldo Barreiro < > > > reier...@gmail.com> wrote: > > > > > > > I do not know if this is possible but > > > > > > > > 1- Open a new tab > > > > 2- Set location to download URL > > > > 3- Close the new tab > > > > > > > > That way (maybe) page does not close WebSocket connection. It would > > still > > > > be "AJAX"... > > > > > > > > > > > > On Thu, Nov 3, 2016 at 9:04 AM, Maxim Solodovnik < > solomax...@gmail.com > > > > > > > wrote: > > > > > > > >> I'm afraid It would be not really Ajax . > > > >> > > > >> On Thu, Nov 3, 2016 at 3:03 PM, Ernesto Reinaldo Barreiro < > > > >> reier...@gmail.com> wrote: > > > >> > > > >> > maybe open a second browser tab and do the download there... > > > >> > > > > >> > On Thu, Nov 3, 2016 at 8:51 AM, Maxim Solodovnik < > > > solomax...@gmail.com> > > > >> > wrote: > > > >> > > > > >> > > I'll try to create quick-start ASAP > > > >> > > > > > >> > > On Thu, Nov 3, 2016 at 2:51 PM, Maxim Solodovnik < > > > >> solomax...@gmail.com> > > > >> > > wrote: > > > >> > > > > > >> > > > AjaxDownload was for wicket 1.5.x (or maybe 6.x) > > > >> > > > maybe it can be enhanced to work without unload? > > > >> > > > > > > >> > > > On Thu, Nov 3, 2016 at 2:46 PM, Sven Meier > > > wrote: > > > >> > > > > > > >> > > >> AjaxDownload changes the window location - the browser > probably > > > >> > prepares > > > >> > > >> unloading of the page, before opening the attached download > in > > a > > > >> > > separate > > > >> > > >> window. > > > >> > > >> > > > >> > > >> Sven > > > >> > > >> > > > >> > > >> > > > >> > > >> > > > >> > > >> Am 03.11.2016 um 08:33 schrieb Martin Grigorov: > > > >> > > >> > > > >> > > >>> Hi Maxim, > > > >> > > >>> > > > >> > > >>> I don't see any relation between those. > > > >> > > >>> If it is easy to reproduce please create a quickstart. > > > >> > > >>> > > > >> > > >>> Martin Grigorov > > > >> > > >>> Wicket Training and Consulting > > > >> > > >>> https://twitter.com/mtgrigorov > > > >> > > >>> > > > >> > > >>> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik < > > > >> > solomax...@gmail.com > > > >> > > > > > > >> > > >>> wrote: > > > >> > > >>> > > > >> > > >>> Hello, > > > >> > > > > > >> > > Recently we found weird behavior of AjaxDownloader (similar > > to > > > >> this > > > >> > > [1] > > > >> > > one) > > > >> > > For some reason at the moment download is initiated > > > >> > > WebSocketBehavior::onClose is being called > > > >> > > What is the reason for this? > > > >> > > > > > >> > > > > > >> > > https://cwiki.apache.org/confluence/display/WICKET/ > > > >> > > AJAX+update+and+file+download+in+one+blow > > > >> > > > > > >> > > -- > > > >> > > WBR > > > >> > > Maxim aka solomax > > > >> > > > > > >> > > > > > >> > > >> > > > >> > > >> > > > >> - > > > >> > > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > > >> > > >> For additional commands, e-mail: > users-h...@wicket.apache.org > > > >> > > >> > > > >> > > >> > > > >> > > > > > > >> > > > > > > >> > > > -- > > > >> > > > WBR > > > >> > > > Maxim aka solomax > > > >> > > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > -- > > > >> > > WBR > > > >> > > Maxim aka solomax > > > >> > > > > > >> > > > > >> > > > > >> > > > > >> > -- > > > >> > Regards - Ernesto Reinaldo Barreiro > > > >> > > > > >> > > > >> > > > >> > > > >> -- > > > >> WBR > > > >> Maxim aka solomax > > > >> > > > > > > > > > > > > > > > > -- > > > > Regards - Ernesto Reinaldo Barreiro > > > > > > > > > > > > > > > > -- > > > Regards - Ernesto Reinaldo Barreiro > > > > > > > > > > > -- > > WBR > > Maxim aka solomax > > > -- WBR Maxim aka solomax
Re: WebSocket close is being called if AjaxDownloader is used
On Thu, Nov 3, 2016 at 9:40 AM, Maxim Solodovnikwrote: > It seems iframe is the only option :((( > Why so sad ? iframe is a good option > here is the JS plugin wrapping this idea: > http://johnculviner.com/jquery-file-download-plugin- > for-ajax-like-feature-rich-file-downloads/ > going to perform additional search > > Thanks for the idea! > > On Thu, Nov 3, 2016 at 3:36 PM, Ernesto Reinaldo Barreiro < > reier...@gmail.com> wrote: > > > or maybe use a hidden iframe to trigger download... > > > > On Thu, Nov 3, 2016 at 9:28 AM, Ernesto Reinaldo Barreiro < > > reier...@gmail.com> wrote: > > > > > I do not know if this is possible but > > > > > > 1- Open a new tab > > > 2- Set location to download URL > > > 3- Close the new tab > > > > > > That way (maybe) page does not close WebSocket connection. It would > still > > > be "AJAX"... > > > > > > > > > On Thu, Nov 3, 2016 at 9:04 AM, Maxim Solodovnik > > > > wrote: > > > > > >> I'm afraid It would be not really Ajax . > > >> > > >> On Thu, Nov 3, 2016 at 3:03 PM, Ernesto Reinaldo Barreiro < > > >> reier...@gmail.com> wrote: > > >> > > >> > maybe open a second browser tab and do the download there... > > >> > > > >> > On Thu, Nov 3, 2016 at 8:51 AM, Maxim Solodovnik < > > solomax...@gmail.com> > > >> > wrote: > > >> > > > >> > > I'll try to create quick-start ASAP > > >> > > > > >> > > On Thu, Nov 3, 2016 at 2:51 PM, Maxim Solodovnik < > > >> solomax...@gmail.com> > > >> > > wrote: > > >> > > > > >> > > > AjaxDownload was for wicket 1.5.x (or maybe 6.x) > > >> > > > maybe it can be enhanced to work without unload? > > >> > > > > > >> > > > On Thu, Nov 3, 2016 at 2:46 PM, Sven Meier > > wrote: > > >> > > > > > >> > > >> AjaxDownload changes the window location - the browser probably > > >> > prepares > > >> > > >> unloading of the page, before opening the attached download in > a > > >> > > separate > > >> > > >> window. > > >> > > >> > > >> > > >> Sven > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> Am 03.11.2016 um 08:33 schrieb Martin Grigorov: > > >> > > >> > > >> > > >>> Hi Maxim, > > >> > > >>> > > >> > > >>> I don't see any relation between those. > > >> > > >>> If it is easy to reproduce please create a quickstart. > > >> > > >>> > > >> > > >>> Martin Grigorov > > >> > > >>> Wicket Training and Consulting > > >> > > >>> https://twitter.com/mtgrigorov > > >> > > >>> > > >> > > >>> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik < > > >> > solomax...@gmail.com > > >> > > > > > >> > > >>> wrote: > > >> > > >>> > > >> > > >>> Hello, > > >> > > > > >> > > Recently we found weird behavior of AjaxDownloader (similar > to > > >> this > > >> > > [1] > > >> > > one) > > >> > > For some reason at the moment download is initiated > > >> > > WebSocketBehavior::onClose is being called > > >> > > What is the reason for this? > > >> > > > > >> > > > > >> > > https://cwiki.apache.org/confluence/display/WICKET/ > > >> > > AJAX+update+and+file+download+in+one+blow > > >> > > > > >> > > -- > > >> > > WBR > > >> > > Maxim aka solomax > > >> > > > > >> > > > > >> > > >> > > >> > > >> > > >> - > > >> > > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > >> > > >> For additional commands, e-mail: users-h...@wicket.apache.org > > >> > > >> > > >> > > >> > > >> > > > > > >> > > > > > >> > > > -- > > >> > > > WBR > > >> > > > Maxim aka solomax > > >> > > > > > >> > > > > >> > > > > >> > > > > >> > > -- > > >> > > WBR > > >> > > Maxim aka solomax > > >> > > > > >> > > > >> > > > >> > > > >> > -- > > >> > Regards - Ernesto Reinaldo Barreiro > > >> > > > >> > > >> > > >> > > >> -- > > >> WBR > > >> Maxim aka solomax > > >> > > > > > > > > > > > > -- > > > Regards - Ernesto Reinaldo Barreiro > > > > > > > > > > > -- > > Regards - Ernesto Reinaldo Barreiro > > > > > > -- > WBR > Maxim aka solomax >
Re: WebSocket close is being called if AjaxDownloader is used
It seems iframe is the only option :((( here is the JS plugin wrapping this idea: http://johnculviner.com/jquery-file-download-plugin-for-ajax-like-feature-rich-file-downloads/ going to perform additional search Thanks for the idea! On Thu, Nov 3, 2016 at 3:36 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > or maybe use a hidden iframe to trigger download... > > On Thu, Nov 3, 2016 at 9:28 AM, Ernesto Reinaldo Barreiro < > reier...@gmail.com> wrote: > > > I do not know if this is possible but > > > > 1- Open a new tab > > 2- Set location to download URL > > 3- Close the new tab > > > > That way (maybe) page does not close WebSocket connection. It would still > > be "AJAX"... > > > > > > On Thu, Nov 3, 2016 at 9:04 AM, Maxim Solodovnik> > wrote: > > > >> I'm afraid It would be not really Ajax . > >> > >> On Thu, Nov 3, 2016 at 3:03 PM, Ernesto Reinaldo Barreiro < > >> reier...@gmail.com> wrote: > >> > >> > maybe open a second browser tab and do the download there... > >> > > >> > On Thu, Nov 3, 2016 at 8:51 AM, Maxim Solodovnik < > solomax...@gmail.com> > >> > wrote: > >> > > >> > > I'll try to create quick-start ASAP > >> > > > >> > > On Thu, Nov 3, 2016 at 2:51 PM, Maxim Solodovnik < > >> solomax...@gmail.com> > >> > > wrote: > >> > > > >> > > > AjaxDownload was for wicket 1.5.x (or maybe 6.x) > >> > > > maybe it can be enhanced to work without unload? > >> > > > > >> > > > On Thu, Nov 3, 2016 at 2:46 PM, Sven Meier > wrote: > >> > > > > >> > > >> AjaxDownload changes the window location - the browser probably > >> > prepares > >> > > >> unloading of the page, before opening the attached download in a > >> > > separate > >> > > >> window. > >> > > >> > >> > > >> Sven > >> > > >> > >> > > >> > >> > > >> > >> > > >> Am 03.11.2016 um 08:33 schrieb Martin Grigorov: > >> > > >> > >> > > >>> Hi Maxim, > >> > > >>> > >> > > >>> I don't see any relation between those. > >> > > >>> If it is easy to reproduce please create a quickstart. > >> > > >>> > >> > > >>> Martin Grigorov > >> > > >>> Wicket Training and Consulting > >> > > >>> https://twitter.com/mtgrigorov > >> > > >>> > >> > > >>> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik < > >> > solomax...@gmail.com > >> > > > > >> > > >>> wrote: > >> > > >>> > >> > > >>> Hello, > >> > > > >> > > Recently we found weird behavior of AjaxDownloader (similar to > >> this > >> > > [1] > >> > > one) > >> > > For some reason at the moment download is initiated > >> > > WebSocketBehavior::onClose is being called > >> > > What is the reason for this? > >> > > > >> > > > >> > > https://cwiki.apache.org/confluence/display/WICKET/ > >> > > AJAX+update+and+file+download+in+one+blow > >> > > > >> > > -- > >> > > WBR > >> > > Maxim aka solomax > >> > > > >> > > > >> > > >> > >> > > >> > >> - > >> > > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> > > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > > >> > >> > > >> > >> > > > > >> > > > > >> > > > -- > >> > > > WBR > >> > > > Maxim aka solomax > >> > > > > >> > > > >> > > > >> > > > >> > > -- > >> > > WBR > >> > > Maxim aka solomax > >> > > > >> > > >> > > >> > > >> > -- > >> > Regards - Ernesto Reinaldo Barreiro > >> > > >> > >> > >> > >> -- > >> WBR > >> Maxim aka solomax > >> > > > > > > > > -- > > Regards - Ernesto Reinaldo Barreiro > > > > > > -- > Regards - Ernesto Reinaldo Barreiro > -- WBR Maxim aka solomax
Re: WebSocket close is being called if AjaxDownloader is used
On Thu, Nov 3, 2016 at 9:36 AM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > or maybe use a hidden iframe to trigger download... > this should be simpler with the tabs some blocker may prevent it > > On Thu, Nov 3, 2016 at 9:28 AM, Ernesto Reinaldo Barreiro < > reier...@gmail.com> wrote: > > > I do not know if this is possible but > > > > 1- Open a new tab > > 2- Set location to download URL > > 3- Close the new tab > > > > That way (maybe) page does not close WebSocket connection. It would still > > be "AJAX"... > > > > > > On Thu, Nov 3, 2016 at 9:04 AM, Maxim Solodovnik> > wrote: > > > >> I'm afraid It would be not really Ajax . > >> > >> On Thu, Nov 3, 2016 at 3:03 PM, Ernesto Reinaldo Barreiro < > >> reier...@gmail.com> wrote: > >> > >> > maybe open a second browser tab and do the download there... > >> > > >> > On Thu, Nov 3, 2016 at 8:51 AM, Maxim Solodovnik < > solomax...@gmail.com> > >> > wrote: > >> > > >> > > I'll try to create quick-start ASAP > >> > > > >> > > On Thu, Nov 3, 2016 at 2:51 PM, Maxim Solodovnik < > >> solomax...@gmail.com> > >> > > wrote: > >> > > > >> > > > AjaxDownload was for wicket 1.5.x (or maybe 6.x) > >> > > > maybe it can be enhanced to work without unload? > >> > > > > >> > > > On Thu, Nov 3, 2016 at 2:46 PM, Sven Meier > wrote: > >> > > > > >> > > >> AjaxDownload changes the window location - the browser probably > >> > prepares > >> > > >> unloading of the page, before opening the attached download in a > >> > > separate > >> > > >> window. > >> > > >> > >> > > >> Sven > >> > > >> > >> > > >> > >> > > >> > >> > > >> Am 03.11.2016 um 08:33 schrieb Martin Grigorov: > >> > > >> > >> > > >>> Hi Maxim, > >> > > >>> > >> > > >>> I don't see any relation between those. > >> > > >>> If it is easy to reproduce please create a quickstart. > >> > > >>> > >> > > >>> Martin Grigorov > >> > > >>> Wicket Training and Consulting > >> > > >>> https://twitter.com/mtgrigorov > >> > > >>> > >> > > >>> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik < > >> > solomax...@gmail.com > >> > > > > >> > > >>> wrote: > >> > > >>> > >> > > >>> Hello, > >> > > > >> > > Recently we found weird behavior of AjaxDownloader (similar to > >> this > >> > > [1] > >> > > one) > >> > > For some reason at the moment download is initiated > >> > > WebSocketBehavior::onClose is being called > >> > > What is the reason for this? > >> > > > >> > > > >> > > https://cwiki.apache.org/confluence/display/WICKET/ > >> > > AJAX+update+and+file+download+in+one+blow > >> > > > >> > > -- > >> > > WBR > >> > > Maxim aka solomax > >> > > > >> > > > >> > > >> > >> > > >> > >> - > >> > > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> > > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > > >> > >> > > >> > >> > > > > >> > > > > >> > > > -- > >> > > > WBR > >> > > > Maxim aka solomax > >> > > > > >> > > > >> > > > >> > > > >> > > -- > >> > > WBR > >> > > Maxim aka solomax > >> > > > >> > > >> > > >> > > >> > -- > >> > Regards - Ernesto Reinaldo Barreiro > >> > > >> > >> > >> > >> -- > >> WBR > >> Maxim aka solomax > >> > > > > > > > > -- > > Regards - Ernesto Reinaldo Barreiro > > > > > > -- > Regards - Ernesto Reinaldo Barreiro >
Re: WebSocket close is being called if AjaxDownloader is used
or maybe use a hidden iframe to trigger download... On Thu, Nov 3, 2016 at 9:28 AM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > I do not know if this is possible but > > 1- Open a new tab > 2- Set location to download URL > 3- Close the new tab > > That way (maybe) page does not close WebSocket connection. It would still > be "AJAX"... > > > On Thu, Nov 3, 2016 at 9:04 AM, Maxim Solodovnik> wrote: > >> I'm afraid It would be not really Ajax . >> >> On Thu, Nov 3, 2016 at 3:03 PM, Ernesto Reinaldo Barreiro < >> reier...@gmail.com> wrote: >> >> > maybe open a second browser tab and do the download there... >> > >> > On Thu, Nov 3, 2016 at 8:51 AM, Maxim Solodovnik >> > wrote: >> > >> > > I'll try to create quick-start ASAP >> > > >> > > On Thu, Nov 3, 2016 at 2:51 PM, Maxim Solodovnik < >> solomax...@gmail.com> >> > > wrote: >> > > >> > > > AjaxDownload was for wicket 1.5.x (or maybe 6.x) >> > > > maybe it can be enhanced to work without unload? >> > > > >> > > > On Thu, Nov 3, 2016 at 2:46 PM, Sven Meier wrote: >> > > > >> > > >> AjaxDownload changes the window location - the browser probably >> > prepares >> > > >> unloading of the page, before opening the attached download in a >> > > separate >> > > >> window. >> > > >> >> > > >> Sven >> > > >> >> > > >> >> > > >> >> > > >> Am 03.11.2016 um 08:33 schrieb Martin Grigorov: >> > > >> >> > > >>> Hi Maxim, >> > > >>> >> > > >>> I don't see any relation between those. >> > > >>> If it is easy to reproduce please create a quickstart. >> > > >>> >> > > >>> Martin Grigorov >> > > >>> Wicket Training and Consulting >> > > >>> https://twitter.com/mtgrigorov >> > > >>> >> > > >>> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik < >> > solomax...@gmail.com >> > > > >> > > >>> wrote: >> > > >>> >> > > >>> Hello, >> > > >> > > Recently we found weird behavior of AjaxDownloader (similar to >> this >> > > [1] >> > > one) >> > > For some reason at the moment download is initiated >> > > WebSocketBehavior::onClose is being called >> > > What is the reason for this? >> > > >> > > >> > > https://cwiki.apache.org/confluence/display/WICKET/ >> > > AJAX+update+and+file+download+in+one+blow >> > > >> > > -- >> > > WBR >> > > Maxim aka solomax >> > > >> > > >> > > >> >> > > >> >> - >> > > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> > > >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > >> >> > > >> >> > > > >> > > > >> > > > -- >> > > > WBR >> > > > Maxim aka solomax >> > > > >> > > >> > > >> > > >> > > -- >> > > WBR >> > > Maxim aka solomax >> > > >> > >> > >> > >> > -- >> > Regards - Ernesto Reinaldo Barreiro >> > >> >> >> >> -- >> WBR >> Maxim aka solomax >> > > > > -- > Regards - Ernesto Reinaldo Barreiro > -- Regards - Ernesto Reinaldo Barreiro
Re: WebSocket close is being called if AjaxDownloader is used
I do not know if this is possible but 1- Open a new tab 2- Set location to download URL 3- Close the new tab That way (maybe) page does not close WebSocket connection. It would still be "AJAX"... On Thu, Nov 3, 2016 at 9:04 AM, Maxim Solodovnikwrote: > I'm afraid It would be not really Ajax . > > On Thu, Nov 3, 2016 at 3:03 PM, Ernesto Reinaldo Barreiro < > reier...@gmail.com> wrote: > > > maybe open a second browser tab and do the download there... > > > > On Thu, Nov 3, 2016 at 8:51 AM, Maxim Solodovnik > > wrote: > > > > > I'll try to create quick-start ASAP > > > > > > On Thu, Nov 3, 2016 at 2:51 PM, Maxim Solodovnik > > > > wrote: > > > > > > > AjaxDownload was for wicket 1.5.x (or maybe 6.x) > > > > maybe it can be enhanced to work without unload? > > > > > > > > On Thu, Nov 3, 2016 at 2:46 PM, Sven Meier wrote: > > > > > > > >> AjaxDownload changes the window location - the browser probably > > prepares > > > >> unloading of the page, before opening the attached download in a > > > separate > > > >> window. > > > >> > > > >> Sven > > > >> > > > >> > > > >> > > > >> Am 03.11.2016 um 08:33 schrieb Martin Grigorov: > > > >> > > > >>> Hi Maxim, > > > >>> > > > >>> I don't see any relation between those. > > > >>> If it is easy to reproduce please create a quickstart. > > > >>> > > > >>> Martin Grigorov > > > >>> Wicket Training and Consulting > > > >>> https://twitter.com/mtgrigorov > > > >>> > > > >>> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik < > > solomax...@gmail.com > > > > > > > >>> wrote: > > > >>> > > > >>> Hello, > > > > > > Recently we found weird behavior of AjaxDownloader (similar to > this > > > [1] > > > one) > > > For some reason at the moment download is initiated > > > WebSocketBehavior::onClose is being called > > > What is the reason for this? > > > > > > > > > https://cwiki.apache.org/confluence/display/WICKET/ > > > AJAX+update+and+file+download+in+one+blow > > > > > > -- > > > WBR > > > Maxim aka solomax > > > > > > > > > >> > > > >> > - > > > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > > >> For additional commands, e-mail: users-h...@wicket.apache.org > > > >> > > > >> > > > > > > > > > > > > -- > > > > WBR > > > > Maxim aka solomax > > > > > > > > > > > > > > > > -- > > > WBR > > > Maxim aka solomax > > > > > > > > > > > -- > > Regards - Ernesto Reinaldo Barreiro > > > > > > -- > WBR > Maxim aka solomax > -- Regards - Ernesto Reinaldo Barreiro
Re: WebSocket close is being called if AjaxDownloader is used
>> Maxim said: websocket.close() triggers the ajax download. Nope, sorry for my English I said For some reason at the moment download is initiated WebSocketBehavior::onClose is being called so user clicks "Download", and then, as the result WebSocket#onClose() is being called I would really like to work-around this On Thu, Nov 3, 2016 at 3:04 PM, Martin Grigorovwrote: > On Thu, Nov 3, 2016 at 8:46 AM, Sven Meier wrote: > > > AjaxDownload changes the window location - the browser probably prepares > > unloading of the page, before opening the attached download in a separate > > window. > > > > This could be the reason but it is the other way around of what Maxim > explained in his first email. > > Maxim said: websocket.close() triggers the ajax download. > > Sven's explanation is valid when: the user click the download link, the > browser does 'location.href=...', the browser triggers 'window.unload' and > this leads to WebSocket.close() on the client side, the last triggers > WebSocket#onClose() at the server side > > > > > > Sven > > > > > > > > Am 03.11.2016 um 08:33 schrieb Martin Grigorov: > > > >> Hi Maxim, > >> > >> I don't see any relation between those. > >> If it is easy to reproduce please create a quickstart. > >> > >> Martin Grigorov > >> Wicket Training and Consulting > >> https://twitter.com/mtgrigorov > >> > >> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik > >> wrote: > >> > >> Hello, > >>> > >>> Recently we found weird behavior of AjaxDownloader (similar to this [1] > >>> one) > >>> For some reason at the moment download is initiated > >>> WebSocketBehavior::onClose is being called > >>> What is the reason for this? > >>> > >>> > >>> https://cwiki.apache.org/confluence/display/WICKET/ > >>> AJAX+update+and+file+download+in+one+blow > >>> > >>> -- > >>> WBR > >>> Maxim aka solomax > >>> > >>> > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > -- WBR Maxim aka solomax
Re: WebSocket close is being called if AjaxDownloader is used
On Thu, Nov 3, 2016 at 8:46 AM, Sven Meierwrote: > AjaxDownload changes the window location - the browser probably prepares > unloading of the page, before opening the attached download in a separate > window. > This could be the reason but it is the other way around of what Maxim explained in his first email. Maxim said: websocket.close() triggers the ajax download. Sven's explanation is valid when: the user click the download link, the browser does 'location.href=...', the browser triggers 'window.unload' and this leads to WebSocket.close() on the client side, the last triggers WebSocket#onClose() at the server side > > Sven > > > > Am 03.11.2016 um 08:33 schrieb Martin Grigorov: > >> Hi Maxim, >> >> I don't see any relation between those. >> If it is easy to reproduce please create a quickstart. >> >> Martin Grigorov >> Wicket Training and Consulting >> https://twitter.com/mtgrigorov >> >> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik >> wrote: >> >> Hello, >>> >>> Recently we found weird behavior of AjaxDownloader (similar to this [1] >>> one) >>> For some reason at the moment download is initiated >>> WebSocketBehavior::onClose is being called >>> What is the reason for this? >>> >>> >>> https://cwiki.apache.org/confluence/display/WICKET/ >>> AJAX+update+and+file+download+in+one+blow >>> >>> -- >>> WBR >>> Maxim aka solomax >>> >>> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: WebSocket close is being called if AjaxDownloader is used
I'm afraid It would be not really Ajax . On Thu, Nov 3, 2016 at 3:03 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > maybe open a second browser tab and do the download there... > > On Thu, Nov 3, 2016 at 8:51 AM, Maxim Solodovnik> wrote: > > > I'll try to create quick-start ASAP > > > > On Thu, Nov 3, 2016 at 2:51 PM, Maxim Solodovnik > > wrote: > > > > > AjaxDownload was for wicket 1.5.x (or maybe 6.x) > > > maybe it can be enhanced to work without unload? > > > > > > On Thu, Nov 3, 2016 at 2:46 PM, Sven Meier wrote: > > > > > >> AjaxDownload changes the window location - the browser probably > prepares > > >> unloading of the page, before opening the attached download in a > > separate > > >> window. > > >> > > >> Sven > > >> > > >> > > >> > > >> Am 03.11.2016 um 08:33 schrieb Martin Grigorov: > > >> > > >>> Hi Maxim, > > >>> > > >>> I don't see any relation between those. > > >>> If it is easy to reproduce please create a quickstart. > > >>> > > >>> Martin Grigorov > > >>> Wicket Training and Consulting > > >>> https://twitter.com/mtgrigorov > > >>> > > >>> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik < > solomax...@gmail.com > > > > > >>> wrote: > > >>> > > >>> Hello, > > > > Recently we found weird behavior of AjaxDownloader (similar to this > > [1] > > one) > > For some reason at the moment download is initiated > > WebSocketBehavior::onClose is being called > > What is the reason for this? > > > > > > https://cwiki.apache.org/confluence/display/WICKET/ > > AJAX+update+and+file+download+in+one+blow > > > > -- > > WBR > > Maxim aka solomax > > > > > > >> > > >> - > > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > >> For additional commands, e-mail: users-h...@wicket.apache.org > > >> > > >> > > > > > > > > > -- > > > WBR > > > Maxim aka solomax > > > > > > > > > > > -- > > WBR > > Maxim aka solomax > > > > > > -- > Regards - Ernesto Reinaldo Barreiro > -- WBR Maxim aka solomax
Re: WebSocket close is being called if AjaxDownloader is used
maybe open a second browser tab and do the download there... On Thu, Nov 3, 2016 at 8:51 AM, Maxim Solodovnikwrote: > I'll try to create quick-start ASAP > > On Thu, Nov 3, 2016 at 2:51 PM, Maxim Solodovnik > wrote: > > > AjaxDownload was for wicket 1.5.x (or maybe 6.x) > > maybe it can be enhanced to work without unload? > > > > On Thu, Nov 3, 2016 at 2:46 PM, Sven Meier wrote: > > > >> AjaxDownload changes the window location - the browser probably prepares > >> unloading of the page, before opening the attached download in a > separate > >> window. > >> > >> Sven > >> > >> > >> > >> Am 03.11.2016 um 08:33 schrieb Martin Grigorov: > >> > >>> Hi Maxim, > >>> > >>> I don't see any relation between those. > >>> If it is easy to reproduce please create a quickstart. > >>> > >>> Martin Grigorov > >>> Wicket Training and Consulting > >>> https://twitter.com/mtgrigorov > >>> > >>> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik > > >>> wrote: > >>> > >>> Hello, > > Recently we found weird behavior of AjaxDownloader (similar to this > [1] > one) > For some reason at the moment download is initiated > WebSocketBehavior::onClose is being called > What is the reason for this? > > > https://cwiki.apache.org/confluence/display/WICKET/ > AJAX+update+and+file+download+in+one+blow > > -- > WBR > Maxim aka solomax > > > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > >> > > > > > > -- > > WBR > > Maxim aka solomax > > > > > > -- > WBR > Maxim aka solomax > -- Regards - Ernesto Reinaldo Barreiro
Re: WebSocket close is being called if AjaxDownloader is used
I'll try to create quick-start ASAP On Thu, Nov 3, 2016 at 2:51 PM, Maxim Solodovnikwrote: > AjaxDownload was for wicket 1.5.x (or maybe 6.x) > maybe it can be enhanced to work without unload? > > On Thu, Nov 3, 2016 at 2:46 PM, Sven Meier wrote: > >> AjaxDownload changes the window location - the browser probably prepares >> unloading of the page, before opening the attached download in a separate >> window. >> >> Sven >> >> >> >> Am 03.11.2016 um 08:33 schrieb Martin Grigorov: >> >>> Hi Maxim, >>> >>> I don't see any relation between those. >>> If it is easy to reproduce please create a quickstart. >>> >>> Martin Grigorov >>> Wicket Training and Consulting >>> https://twitter.com/mtgrigorov >>> >>> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik >>> wrote: >>> >>> Hello, Recently we found weird behavior of AjaxDownloader (similar to this [1] one) For some reason at the moment download is initiated WebSocketBehavior::onClose is being called What is the reason for this? https://cwiki.apache.org/confluence/display/WICKET/ AJAX+update+and+file+download+in+one+blow -- WBR Maxim aka solomax >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > WBR > Maxim aka solomax > -- WBR Maxim aka solomax
Re: WebSocket close is being called if AjaxDownloader is used
AjaxDownload was for wicket 1.5.x (or maybe 6.x) maybe it can be enhanced to work without unload? On Thu, Nov 3, 2016 at 2:46 PM, Sven Meierwrote: > AjaxDownload changes the window location - the browser probably prepares > unloading of the page, before opening the attached download in a separate > window. > > Sven > > > > Am 03.11.2016 um 08:33 schrieb Martin Grigorov: > >> Hi Maxim, >> >> I don't see any relation between those. >> If it is easy to reproduce please create a quickstart. >> >> Martin Grigorov >> Wicket Training and Consulting >> https://twitter.com/mtgrigorov >> >> On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnik >> wrote: >> >> Hello, >>> >>> Recently we found weird behavior of AjaxDownloader (similar to this [1] >>> one) >>> For some reason at the moment download is initiated >>> WebSocketBehavior::onClose is being called >>> What is the reason for this? >>> >>> >>> https://cwiki.apache.org/confluence/display/WICKET/ >>> AJAX+update+and+file+download+in+one+blow >>> >>> -- >>> WBR >>> Maxim aka solomax >>> >>> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- WBR Maxim aka solomax
Re: WebSocket close is being called if AjaxDownloader is used
AjaxDownload changes the window location - the browser probably prepares unloading of the page, before opening the attached download in a separate window. Sven Am 03.11.2016 um 08:33 schrieb Martin Grigorov: Hi Maxim, I don't see any relation between those. If it is easy to reproduce please create a quickstart. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnikwrote: Hello, Recently we found weird behavior of AjaxDownloader (similar to this [1] one) For some reason at the moment download is initiated WebSocketBehavior::onClose is being called What is the reason for this? https://cwiki.apache.org/confluence/display/WICKET/ AJAX+update+and+file+download+in+one+blow -- WBR Maxim aka solomax - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WebSocket close is being called if AjaxDownloader is used
Hi Maxim, I don't see any relation between those. If it is easy to reproduce please create a quickstart. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Nov 3, 2016 at 4:16 AM, Maxim Solodovnikwrote: > Hello, > > Recently we found weird behavior of AjaxDownloader (similar to this [1] > one) > For some reason at the moment download is initiated > WebSocketBehavior::onClose is being called > What is the reason for this? > > > https://cwiki.apache.org/confluence/display/WICKET/ > AJAX+update+and+file+download+in+one+blow > > -- > WBR > Maxim aka solomax >