title: JSF : PropertyNotFoundException The class '' does not have the property ''
body: <p>Two days I'm looking for a solution to that basic problem. And YES I do have GETTER AND SETTER, and YES I really think that the convention is OK.</p>
  
  <p>Here is the code :</p>
  
  <p>Bean :</p>
  
  <pre><code>@Named
  @SessionScoped
  public class ClientController implements Serializable {
  
  @Inject
  private ClientService das;
  private List&lt;Client&gt; clientsList;
  public void setClientsList(List&lt;Client&gt; clientsList) {
      this.clientsList = clientsList;
  }
  
  private Client client = new Client();
  
  
  public Client getClient() {
      return client;
  }
  
  public void setClient(Client client) {
      this.client = client;
  }
  
  public void createclient(ActionEvent actionEvent) {
      das.create(client);
  }
  
  public List&lt;Client&gt; getClientsList() {
      clientsList = das.findByNativeQuery(Client.ALL);
      return clientsList;
  }
  
  }
  </code></pre>
  
  <p>Page index.xhtml : </p>
  
  <pre><code>&lt;ui:composition template="/templates/layout.xhtml"
  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;ui:define name="content"&gt;
  
      &lt;h:form&gt;
          &lt;p:panel header="Créer un Client"&gt;
              &lt;h:outputText value="Prénom : "&gt;&lt;/h:outputText&gt;
              &lt;p:inputText id="clientName" value="#{clientController.client.name}" required="true"
                  requiredMessage="Entrez votre prénom" message="fc"&gt;
                  &lt;f:validateLength minimum="2" /&gt;
              &lt;/p:inputText&gt;
              &lt;h:outputText value="Nom : "&gt;&lt;/h:outputText&gt;
              &lt;p:inputText id="clientLastName" value="#{clientController.client.lastName}"
                  required="true" requiredMessage="Entrez votre nom"   message="fc"&gt;
                  &lt;f:validateLength minimum="2" /&gt;
              &lt;/p:inputText&gt;
          &lt;/p:panel&gt;
          &lt;p:commandButton value="Submit"         
              actionListener="#{clientController.createclient}" /&gt;
      &lt;/h:form&gt;
  &lt;/ui:define&gt;
  &lt;/ui:composition&gt;
  </code></pre>
  
  <p>Error :</p>
  
  <pre><code>/index.xhtml @14,57 value="#{clientController.client.name}": The class 'controllers.ClientController' does not have the property 'client'.
  </code></pre>
  
  <p>As you can see, the Bean is resolved, and even the createclient() method is resolved (I tried to test it without the rest of the code). The problem is just about attributes... </p>
  
  <p>Please help ? I'm sure it's a stupid problem, but sometimes we just need an other point of view</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>WEB-INF/web.xml :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="http://java.sun.com/xml/ns/javaee"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  version="2.5"&gt;
  &lt;display-name&gt;Bourse&lt;/display-name&gt;
  
  &lt;!-- Current project stage. When it is set to 'Development' Primefaces give 
      a lot of debug information on the screen. --&gt;
  &lt;context-param&gt;
      &lt;param-name&gt;javax.faces.PROJECT_STAGE&lt;/param-name&gt;
      &lt;param-value&gt;Development&lt;/param-value&gt;
  &lt;/context-param&gt;
  
  &lt;context-param&gt;
      &lt;param-name&gt;facelets.SKIP_COMMENTS&lt;/param-name&gt;
      &lt;param-value&gt;true&lt;/param-value&gt;
  &lt;/context-param&gt;
  
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;/index.xhtml&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  
  &lt;!-- Staring JSF --&gt;
  &lt;servlet&gt;
      &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  
  &lt;!-- JSF URL mapping --&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.xhtml&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  &lt;context-param&gt;
      &lt;param-name&gt;javax.faces.CONFIG_FILES&lt;/param-name&gt;
      &lt;param-value&gt;/WEB-INF/manage-beans.xml&lt;/param-value&gt;
  &lt;/context-param&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>WEB-INF/manage-beans.xml :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
   &lt;faces-config xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
      http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
      version="2.0"&gt;
      &lt;managed-bean&gt;
          &lt;managed-bean-name&gt;clientController&lt;/managed-bean-name&gt;
          &lt;managed-bean-class&gt;controllers.ClientController&lt;/managed-bean-class&gt;
          &lt;managed-bean-scope&gt;session&lt;/managed-bean-scope&gt;
      &lt;/managed-bean&gt;
   &lt;/faces-config&gt;
  </code></pre>