© Michael Müller 2018

Michael Müller, Practical JSF in Java EE 8 , https://doi.org/10.1007/978-1-4842-3030-5_26

26. AJAX Components

Michael Müller

(1)Brühl, Nordrhein-Westfalen, Germany

In a normal request, the browser queries for a whole page. By contrast, AJAX (Asynchronous JavaScript and XML ) is commonly used to query only small portions of data with a special object called the XMLHttpRequest. That object is used to query data in the background (asynchronous) while the page is still displayed. Depending on the response, parts of the page might be rerendered. In JSF, this is called a partial request.

When the term was first used, the response was some XML data. Nowadays, the most preferred format for the response’s payload is a JSON string, ...

Get Practical JSF in Java EE 8 : Web Applications ​in Java for the Enterprise now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.