Waffle was built to be easy to develop with and this ease extends to Ajax support as well. Utilizing AJAX in Waffle application is straightforward and simple. The examples here use the Prototype JavaScript Framework.
We will create a simple Controller with an event (int random();) that will return a random number between 0 and 10. To make it more interesting whenever the value equals 5 the event will throw an Exception.
So we create a simple View that will periodically (every 2 seconds is the default) request a new value from the Server.
The FoobarController is registered under the name "foobar". Notice that the Controller is being registered to the Application level context.
By simply having an ActionMethod invoked through an asynchronous call which return View's you'll be able to build your web applications to take advantage of partial page rendering.
TODO ... need example!!! ...