0

I've the below command button:

<h:commandButton value="Valider" action="#{utilisateurBean.addUtilisateur()}" />

When I click this button, an error appears in server log:

Caused by: javax.el.PropertyNotFoundException: Property 'addUtilisateur' not found on type com.faycal.bean.UtilisateurBean

How is this caused and how can I solve it? The UtilisateurBean is @ViewScoped.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
faycal81
  • 13
  • 5
  • 1
    Did you use google translate to translate from French? Hard to understand what you are asking... – john May 20 '15 at 11:44
  • post your bean code and error message – Joffrey Hernandez May 20 '15 at 11:54
  • public String addUtilisateur(){ Utilisateur u = new Utilisateur(); u.setDateInscription(new Date()); return "/compte/add-utilisateur-result.xhtml?faces-redirect=true&resultat=ok"; } – faycal81 May 20 '15 at 12:35
  • And error code : Caused by: javax.el.PropertyNotFoundException: Property 'addUtilisateur' not found on type com.faycal.bean.UtilisateurBean – faycal81 May 20 '15 at 12:37
  • What is the scope of `UtilisateurBean`? PS: In future please edit your question and don't post that much code in comments. makes it more readable ;) – LarsBauer May 20 '15 at 15:05
  • I found the problem, in my jsp file, the tag of
    must be changed to
    – faycal81 May 21 '15 at 07:54

0 Answers0