Configuring a Faces application
Here is what the web version of the Financial Calculator app looks like:
Figure 15.1 – The Financial Calculator web page
Configuring a Faces project begins with the same setup as any basic web application, such as what we saw in the previous chapter. The Maven folder setup is identical. In the WEB-INF
folder, we have three required XML configuration files and one that is optional. Let us begin with beans.xml
:
<beans xmlns="https://jakarta.ee/xml/ns/jakartaee" xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/beans_3_0.xsd" bean-discovery-mode="annotated"> </beans>
This looks strange because there is only one tag, beans
. Before the widespread usage of annotations...