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?

 

Reply via email to