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

26. AJAX Components

Michael Müller1 
(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, which ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.