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 $link to call the server (disable the browser JavaScript to see the fallback behavior in action)

#if($msg)

$msg

#end