Java Reference
In-Depth Information
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<enabled>true</enabled>
<async-supported>false</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>
*.jsf
</url-pattern>
</servlet-mapping>
</web-app>
This will then run the FacesServlet for all pages invoked with the *.jsf suffix.
Finally, as we stated previously, in order to activate CDI we need to add an empty
beans.xml file in the WEB-INF folder of your application.
So, if you followed the same naming conventions used in this chapter, you will end
up with the following project structure:
Search WWH ::




Custom Search