3.2. About Ajax

Ajax stands for Asynchronous JavaScript and XML. It is a method for creating dynamic webpages and applications that can be updated asynchronously. Ajax applications work independently of browsers and platforms. They gather information only from the code itself. An example of an Ajax interface is a dynamic search box which uses JavaScript to display results as the user is typing the letters.
There are a number of Ajax features that can be utilized with RichFaces:
  • AjaxOutput is an interface that marks the JSF tree that is updated and rendered on the client for every Ajax request. It only marks the JSF tree if the component or behavior sending the request does not explicitly turn off automatic updates.
  • AjaxContainer is an interface that marks the JSF tree that is decoded during an Ajax request. It only marks the JSF tree if the component or behavior sending the request does not explicitly specify an alternative. AjaxRegion is an implementation used in this interface.
  • The RichFaces Ajax Extensions plug into the standard JSF 2 Ajax script facility. They extend the script facility with new features and options.