title: xhtml don't recognize methods declared in managed Bean
body: <p>in my XHTML page I can't call methods declared in managed bean, I'm new to this platform , I'd like that some one clarifies this to me. I'm working on a JSF 2.1 project with JPA on Eclipse Juno 4.2
  here's my managed been code</p>
  
  <pre><code>/*
   * To change this template, choose Tools | Templates
   * and open the template in the editor.
   */
  package managedBean;
  
  
  
  import java.util.List;
  
  import javax.ejb.Local;
  
  import model.*;
  import java.util.ArrayList;
  import java.util.List;
  import javax.annotation.PostConstruct;
  import javax.ejb.EJB;
  import javax.faces.bean.ManagedBean;
  import javax.faces.bean.RequestScoped;
  import javax.faces.bean.ViewScoped;
  
  import service.EmpFacadeLocal;
  
  /**
   *
   * @author Louuup
   */
  @ManagedBean (name= "empbean")
  @RequestScoped
  @ViewScoped
  public class EmpManagedBean {
  public Employe emp;
      @EJB
      public EmpFacadeLocal empfacadelocal; 
      public Boolean saisie;
       private List&lt;Employe&gt; emps;
       private String iddd;
       private Employe selectedemp;
       private List&lt;Employe&gt; filteredemps; 
       private Employe[] selectedemps;
      /**
       * Creates a new instance of EmpManagedBean
       */
      public EmpManagedBean() {
          emps = new ArrayList&lt;Employe&gt;();
      }
       @PostConstruct
      public void initEmp(){
          emp = new Employe();
          saisie = false;
           emps = empfacadelocal.getEmpRq("");
      }
  
      public Employe getEmp() {
          return emp;
      }
  
      public void setEmp(Employe emp) {
          this.emp = emp;
      }
  
      public Boolean getSaisie() {
          return saisie;
      }
  
      public void setSaisie(Boolean saisie) {
          this.saisie = saisie;
      }
  
      public List&lt;Employe&gt; getEmps() {
          return emps;
      }
  
      public void setEmps(List&lt;Employe&gt; emps) {
          this.emps = emps;
      }
  
      public String getIddd() {
          return iddd;
      }
  
      public void setIddd(String iddd) {
          this.iddd = iddd;
      }
  
      public Employe getSelectedemp() {
          return selectedemp;
      }
  
      public void setSelectedemp(Employe selectedemp) {
          this.selectedemp = selectedemp;
      }
  
      public List&lt;Employe&gt; getFilteredemps() {
          return filteredemps;
      }
  
      public void setFilteredemps(List&lt;Employe&gt; filteredemps) {
          this.filteredemps = filteredemps;
      }
  
      public Employe[] getSelectedemps() {
          return selectedemps;
      }
  
      public void setSelectedemps(Employe[] selectedemps) {
          this.selectedemps = selectedemps;
      }
      public void findEmpaff(){
          //admin = adminfacadelocal.getAdmin(iddd);
          emps = empfacadelocal.getEmpRq("");
      } 
       public void creerEmp(){
           System.out.println("azertre ");
          empfacadelocal.create(emp);
          saisie = true;
      }
  }
  </code></pre>
  
  <p>and here is my xhtml page</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:p="http://primefaces.org/ui"&gt;
  
      &lt;body&gt;
  
          &lt;ui:composition template="./../resource/Template.xhtml"&gt;
  
              &lt;ui:define name="title"&gt;
                  &lt;title&gt; Ajout emp&lt;/title&gt;
              &lt;/ui:define&gt;
  
              &lt;ui:define name="page"&gt;
                  &lt;h:form id="dd"&gt;  
  
  
  
                      &lt;p:growl id="growl" showDetail="true"/&gt;  
  
  
                      &lt;p:panel header="Fiche Emplyé" &gt;  
                          &lt;h:panelGrid columns="2"  style="margin-bottom:10px" cellpadding="5"&gt;
                              &lt;h:outputLabel value="Matricule Employé :"/&gt;
                              &lt;p:inputText  disabled="#{empbean.saisie}" value="#{empbean.emp.matEmp}"/&gt;
                              &lt;h:outputLabel value="Nom Employé :"/&gt;
                              &lt;p:inputText  disabled="#{empbean.saisie}" value="#{empbean.emp.nomEmp}"/&gt;
                              &lt;h:outputLabel value="Prénom Employé :"/&gt;
                              &lt;p:inputText  disabled="#{empbean.saisie}" value="#{empbean.emp.prenomEmp}"/&gt;
                              &lt;h:outputLabel value="Date de naissance Employé :"/&gt;
                              &lt;p:calendar disabled="#{empbean.saisie}" locale="pt" showButtonPanel="true" navigator="true" id="pttCal" value="#{empbean.emp.dateNaisEmp}"/&gt;  
                              &lt;h:outputLabel value="Adresse Employé :"/&gt;
                              &lt;p:inputText  disabled="#{empbean.saisie}" value="#{empbean.emp.adressEmp}"/&gt;
                              &lt;h:outputLabel value="N° téléph Employé :"/&gt;
                              &lt;p:inputText  disabled="#{empbean.saisie}" value="#{emp.emp.numTelfEmp}"/&gt;
                              &lt;h:outputLabel value="E-mail Employé :"/&gt;
                              &lt;p:inputText  disabled="#{empbean.saisie}" value="#{empbean.emp.emailEmp}"/&gt;
                              &lt;h:outputLabel value="N° compte Employé :"/&gt;
                              &lt;p:inputText  disabled="#{empbean.saisie}" value="#{empbean.emp.numCompteEmp}"/&gt;
  
                              &lt;p:selectOneMenu disabled="#{empManagedBean.saisie}" value="#{empbean.emp.fonctionEmp}"&gt;  
                                  &lt;f:selectItem itemLabel="Jardinier" itemValue="Jardinier" /&gt;    
                                  &lt;f:selectItem itemLabel="Agent d'hygiene" itemValue="Agent d'hygiene" /&gt; 
                                  &lt;f:selectItem itemLabel="Agent de sécurité" itemValue="Agent de sécurité" /&gt;    
                                  &lt;f:selectItem itemLabel="Magasinier" itemValue="Magasinier" /&gt; 
                              &lt;/p:selectOneMenu&gt; 
  
  
  
  
  
  
                          &lt;/h:panelGrid&gt;&lt;br/&gt;
                          &lt;p:commandButton  disabled="#{empbean.saisie}" value="Valider" update="dd" style="margin-left: 250px;"  actionListener="#{empbean.   }"/&gt;
  
  
  
                      &lt;/p:panel&gt; 
  
                  &lt;/h:form&gt;  
              &lt;/ui:define&gt;
  
          &lt;/ui:composition&gt;
  
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I want call "creerEmp" method in command button's actionlistener like this #{empbean.creerEmp()} but I can't do this , please someone help me</p>