I decided to combine the good parts of Jim's blog post with some of the goodies from +Bauke Scholtz to create a complete example. In this example, I use a solution from Jim to demonstrate the events that are returned from the
onError()listeners. Along with a common request... A spinner for AJAX requests.
Once you download, and run the code. You will see a spinner while the AJAX request is processing. In my case, I use a
Thread.sleep(2000);to cause the spinner to display for a little while.
The code for project can be found here: jsf-ajax-demo