AjaxBehavior extends the basic Behavior functionality to allow Controls to handle and process incoming Ajax requests.
To handle an Ajax request, AjaxBehavior exposes the listener method: {@link #onAction(org.apache.click.Control) onAction}. The
onAction method returns an ActionResult that is rendered back to the browser.
Before Click invokes the
onAction method it checks whether the request is targeted at the AjaxBehavior by invoking the method {@link #isAjaxTarget(org.apache.click.Context) Behavior.isAjaxTarget()}. Click will only invoke
onAction if
isAjaxTarget returns true.