Re: wicket abort ajax handling of multipart form when the server is stopped

2015-03-26 Thread Yiu Wing TSANG
Yes, this is fine, thanks.

On Wed, Mar 25, 2015 at 2:19 PM, Martin Grigorov mgrigo...@apache.org
wrote:

 I guess it will be just before Apache Con, i.e. in two weeks.

 Can you use -SNAPSHOT until then ?

 Martin Grigorov
 Freelancer, available for hire!
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov

 On Wed, Mar 25, 2015 at 6:53 AM, ywtsang ywts...@gmail.com wrote:

  Sorry that I missed to mention the browser.
 
  Thanks for the quick help.
 
  Do we have any schedule for the next wicket-7 release?
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/wicket-abort-ajax-handling-of-multipart-form-when-the-server-is-stopped-tp4670076p4670084.html
  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Re: wicket abort ajax handling of multipart form when the server is stopped

2015-03-26 Thread Martin Grigorov
Note that you have to explicitly set a request timeout for the AjaxButton
if you want to be notified about the error in connection.
See the comments in the ticket for details.

Martin Grigorov
Freelancer, available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Thu, Mar 26, 2015 at 1:12 PM, Yiu Wing TSANG ywts...@gmail.com wrote:

 Yes, this is fine, thanks.

 On Wed, Mar 25, 2015 at 2:19 PM, Martin Grigorov mgrigo...@apache.org
 wrote:

  I guess it will be just before Apache Con, i.e. in two weeks.
 
  Can you use -SNAPSHOT until then ?
 
  Martin Grigorov
  Freelancer, available for hire!
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
  On Wed, Mar 25, 2015 at 6:53 AM, ywtsang ywts...@gmail.com wrote:
 
   Sorry that I missed to mention the browser.
  
   Thanks for the quick help.
  
   Do we have any schedule for the next wicket-7 release?
  
   --
   View this message in context:
  
 
 http://apache-wicket.1842946.n4.nabble.com/wicket-abort-ajax-handling-of-multipart-form-when-the-server-is-stopped-tp4670076p4670084.html
   Sent from the Users forum mailing list archive at Nabble.com.
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 



Re: wicket abort ajax handling of multipart form when the server is stopped

2015-03-25 Thread Martin Grigorov
I guess it will be just before Apache Con, i.e. in two weeks.

Can you use -SNAPSHOT until then ?

Martin Grigorov
Freelancer, available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, Mar 25, 2015 at 6:53 AM, ywtsang ywts...@gmail.com wrote:

 Sorry that I missed to mention the browser.

 Thanks for the quick help.

 Do we have any schedule for the next wicket-7 release?

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicket-abort-ajax-handling-of-multipart-form-when-the-server-is-stopped-tp4670076p4670084.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: wicket abort ajax handling of multipart form when the server is stopped

2015-03-24 Thread Martin Grigorov
Hi,

Please file a ticket at our JIRA.
We should improve this. E.g. by calling #onFailure() if the iframe doesn't
load after some timeout (jQuery#ajax()'s timeout).

Martin Grigorov
Freelancer, available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Mar 24, 2015 at 7:01 AM, ywtsang ywts...@gmail.com wrote:

 in normal case, I have tested that wicket ajax multipart form submit event
 can be triggered properly in this sequence

   onbefore
   onprecondition
   onbeforesend
   onafter
   onsucess
   oncomplete

 but when the server is stopped and the same ajax multipart form is
 submitted, only these events are triggered

   onbefore
   onprecondition
   onbeforesend
   onafter

 i.e. the onfaliure, oncomplete are not called

 and the browser is just hanged and the wicket js is waiting forever for
 load.handleMultipartComplete from the upload iframe, i.e. this ajax form
 submit is not completed and further ajax event will be just queued

 from the firebug console, the iframe html can be found as:



 the html inside the iframe simply means Connection Error

 so how can I proceed to handle this problem?

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicket-abort-ajax-handling-of-multipart-form-when-the-server-is-stopped-tp4670076.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: wicket abort ajax handling of multipart form when the server is stopped

2015-03-24 Thread Martin Grigorov
OK. I can reproduce the problem with Firefox. Chrome works fine.

Martin Grigorov
Freelancer, available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Mar 24, 2015 at 11:28 PM, Martin Grigorov mgrigo...@apache.org
wrote:

 Hi,

 I cannot reproduce the problem.
 The iframe with the Connection error content is indeed loaded but
 wicket-ajax-jquery.js' #handleMultipartComplete() is called (i.e. 'load'
 event is fired).
 Then onFailure() [1] is called and finally Channel#done() [2] is called to
 release it.
 I don't see why it hangs for you.

 1.
 https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js#L951
 2.
 https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js#L978

 Martin Grigorov
 Freelancer, available for hire!
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov

 On Tue, Mar 24, 2015 at 11:46 AM, Martin Grigorov mgrigo...@apache.org
 wrote:

 Hi,

 Please file a ticket at our JIRA.
 We should improve this. E.g. by calling #onFailure() if the iframe
 doesn't load after some timeout (jQuery#ajax()'s timeout).

 Martin Grigorov
 Freelancer, available for hire!
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov

 On Tue, Mar 24, 2015 at 7:01 AM, ywtsang ywts...@gmail.com wrote:

 in normal case, I have tested that wicket ajax multipart form submit
 event
 can be triggered properly in this sequence

   onbefore
   onprecondition
   onbeforesend
   onafter
   onsucess
   oncomplete

 but when the server is stopped and the same ajax multipart form is
 submitted, only these events are triggered

   onbefore
   onprecondition
   onbeforesend
   onafter

 i.e. the onfaliure, oncomplete are not called

 and the browser is just hanged and the wicket js is waiting forever for
 load.handleMultipartComplete from the upload iframe, i.e. this ajax
 form
 submit is not completed and further ajax event will be just queued

 from the firebug console, the iframe html can be found as:



 the html inside the iframe simply means Connection Error

 so how can I proceed to handle this problem?

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicket-abort-ajax-handling-of-multipart-form-when-the-server-is-stopped-tp4670076.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org






Re: wicket abort ajax handling of multipart form when the server is stopped

2015-03-24 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-5864

Martin Grigorov
Freelancer, available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Mar 24, 2015 at 11:53 PM, Martin Grigorov mgrigo...@apache.org
wrote:

 OK. I can reproduce the problem with Firefox. Chrome works fine.

 Martin Grigorov
 Freelancer, available for hire!
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov

 On Tue, Mar 24, 2015 at 11:28 PM, Martin Grigorov mgrigo...@apache.org
 wrote:

 Hi,

 I cannot reproduce the problem.
 The iframe with the Connection error content is indeed loaded but
 wicket-ajax-jquery.js' #handleMultipartComplete() is called (i.e. 'load'
 event is fired).
 Then onFailure() [1] is called and finally Channel#done() [2] is called
 to release it.
 I don't see why it hangs for you.

 1.
 https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js#L951
 2.
 https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js#L978

 Martin Grigorov
 Freelancer, available for hire!
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov

 On Tue, Mar 24, 2015 at 11:46 AM, Martin Grigorov mgrigo...@apache.org
 wrote:

 Hi,

 Please file a ticket at our JIRA.
 We should improve this. E.g. by calling #onFailure() if the iframe
 doesn't load after some timeout (jQuery#ajax()'s timeout).

 Martin Grigorov
 Freelancer, available for hire!
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov

 On Tue, Mar 24, 2015 at 7:01 AM, ywtsang ywts...@gmail.com wrote:

 in normal case, I have tested that wicket ajax multipart form submit
 event
 can be triggered properly in this sequence

   onbefore
   onprecondition
   onbeforesend
   onafter
   onsucess
   oncomplete

 but when the server is stopped and the same ajax multipart form is
 submitted, only these events are triggered

   onbefore
   onprecondition
   onbeforesend
   onafter

 i.e. the onfaliure, oncomplete are not called

 and the browser is just hanged and the wicket js is waiting forever
 for
 load.handleMultipartComplete from the upload iframe, i.e. this ajax
 form
 submit is not completed and further ajax event will be just queued

 from the firebug console, the iframe html can be found as:



 the html inside the iframe simply means Connection Error

 so how can I proceed to handle this problem?

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicket-abort-ajax-handling-of-multipart-form-when-the-server-is-stopped-tp4670076.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org







Re: wicket abort ajax handling of multipart form when the server is stopped

2015-03-24 Thread Martin Grigorov
Hi,

I cannot reproduce the problem.
The iframe with the Connection error content is indeed loaded but
wicket-ajax-jquery.js' #handleMultipartComplete() is called (i.e. 'load'
event is fired).
Then onFailure() [1] is called and finally Channel#done() [2] is called to
release it.
I don't see why it hangs for you.

1.
https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js#L951
2.
https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js#L978

Martin Grigorov
Freelancer, available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Mar 24, 2015 at 11:46 AM, Martin Grigorov mgrigo...@apache.org
wrote:

 Hi,

 Please file a ticket at our JIRA.
 We should improve this. E.g. by calling #onFailure() if the iframe doesn't
 load after some timeout (jQuery#ajax()'s timeout).

 Martin Grigorov
 Freelancer, available for hire!
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov

 On Tue, Mar 24, 2015 at 7:01 AM, ywtsang ywts...@gmail.com wrote:

 in normal case, I have tested that wicket ajax multipart form submit event
 can be triggered properly in this sequence

   onbefore
   onprecondition
   onbeforesend
   onafter
   onsucess
   oncomplete

 but when the server is stopped and the same ajax multipart form is
 submitted, only these events are triggered

   onbefore
   onprecondition
   onbeforesend
   onafter

 i.e. the onfaliure, oncomplete are not called

 and the browser is just hanged and the wicket js is waiting forever for
 load.handleMultipartComplete from the upload iframe, i.e. this ajax form
 submit is not completed and further ajax event will be just queued

 from the firebug console, the iframe html can be found as:



 the html inside the iframe simply means Connection Error

 so how can I proceed to handle this problem?

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicket-abort-ajax-handling-of-multipart-form-when-the-server-is-stopped-tp4670076.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





Re: wicket abort ajax handling of multipart form when the server is stopped

2015-03-24 Thread ywtsang
Sorry that I missed to mention the browser.

Thanks for the quick help.

Do we have any schedule for the next wicket-7 release?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-abort-ajax-handling-of-multipart-form-when-the-server-is-stopped-tp4670076p4670084.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



wicket abort ajax handling of multipart form when the server is stopped

2015-03-23 Thread ywtsang
in normal case, I have tested that wicket ajax multipart form submit event
can be triggered properly in this sequence

  onbefore
  onprecondition
  onbeforesend
  onafter
  onsucess
  oncomplete

but when the server is stopped and the same ajax multipart form is
submitted, only these events are triggered

  onbefore
  onprecondition
  onbeforesend
  onafter

i.e. the onfaliure, oncomplete are not called

and the browser is just hanged and the wicket js is waiting forever for
load.handleMultipartComplete from the upload iframe, i.e. this ajax form
submit is not completed and further ajax event will be just queued

from the firebug console, the iframe html can be found as:



the html inside the iframe simply means Connection Error

so how can I proceed to handle this problem?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-abort-ajax-handling-of-multipart-form-when-the-server-is-stopped-tp4670076.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org