Let's create a simple Apache MyFaces application in Eclipse. Also let's integrate Spring Security to JSF, and then demonstrate basic authentication.
Perform the following steps to implement a basic authentication mechanism with JSF and Spring Security:
User.javais the Managed Bean of the application. It has two methods:
package com.packt.jsf.bean; ...