In Chapter 4 we talked about creating multi-page web applications via Java server faces (JSF). The central paradigm of JSF is the communication between the user (browser) and the server via forms, although using the <f:ajax> tag makes a more fine-grained communication possible because only the form part needs to be transmitted to the server.
A totally different paradigm operates under the name single-page application or SPA. Here, only one page gets loaded for the whole application, the user interaction or front-end logic gets handled by JavaScript, and the ...