Click
Click Examples

Ajax Fallback Page

This example demonstrates how to support both an Ajax and non-Ajax action event. If JavaScript is enabled an Ajax request is made, if JavaScript is disabled a normal HTTP request is made. On the server an AjaxBehavior handles the Ajax request while an ActionListener handles the non-Ajax event.

Click here to call the server (disable the browser JavaScript to see the fallback behavior in action)