Possible asynchronous ajax operations with form ajaxsubmitlink

2013-09-12 Thread Brown, Berlin [PRI-1PP]
Is it possible for wicket to execute operations asynchronously in terms
of handling ajax calls.

 

For example, if I have an ajax submit link.

 

AjaxSubmitLink1 {

   OnSubmit() {

runLongRunningOperation();

   // Imagine this operation runs 10 seconds

  }

}

AjaxSubmitLink2 {

   OnSubmit() {

runLongRunningOperation();

   // Imagine this operation runs 2 seconds

  }

}

 

Let's say a user clicks on ajaxsubmitlink1 and then ajaxsubmitlink2.

(1)Runs in 10 seconds.

(2)Runs in 5 seconds.

 

Is it possible that ajax submit link2 will complete before
ajaxsubmitlink1 even though the user click on 1 first?

 



Re: Possible asynchronous ajax operations with form ajaxsubmitlink

2013-09-12 Thread Sven Meier

No, because all access to Wicket pages is serialized (on the server).

Sven

On 09/12/2013 03:20 PM, Brown, Berlin [PRI-1PP] wrote:

Is it possible for wicket to execute operations asynchronously in terms
of handling ajax calls.

  


For example, if I have an ajax submit link.

  


AjaxSubmitLink1 {

OnSubmit() {

 runLongRunningOperation();

// Imagine this operation runs 10 seconds

   }

}

AjaxSubmitLink2 {

OnSubmit() {

 runLongRunningOperation();

// Imagine this operation runs 2 seconds

   }

}

  


Let's say a user clicks on ajaxsubmitlink1 and then ajaxsubmitlink2.

(1)Runs in 10 seconds.

(2)Runs in 5 seconds.

  


Is it possible that ajax submit link2 will complete before
ajaxsubmitlink1 even though the user click on 1 first?

  






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