Exemple managed bean Formulaire : Utilisation de bean avec un formulaire
Mauvais password ou id client
Bon password
Structure du projet
Création du projet
Partie 1 : Créer un projet
Partie 2 : Code source
- Customer.java (les objets du domain)
- CustomerService.java (Interface du Service)
- CustomerServiceImpl.java (le service “Model”)
- CustomerServiceImpl.java (votre mini controlleur)
- WebContent : les pages
Completer le code en rouge
index.jsp
Solution
unknown-customer.xhtml
Solution
normal-balance.xhtml
Solution
negative-balance.xhtml
Solution
high-balance.xhtml
Solution
wrong-password.xhtml