title: Property not found on type in jsf
body: <p>i am trying to call a property in jsf which using primefaces. but i have error 500 which not found on type managedbean.PersonelBean.
  i am using hibernate jsf and spring.</p>
  
  <p>PersonelBean.java</p>
  
  <pre><code>@ManagedBean(name="personelMB")
  @SessionScoped
  public class PersonelBean implements Serializable{
      private static final long serialVersionUID = 1L;
  
      @ManagedProperty(value="#{PersonelService}")
      IPersonelService personelservice;
      List&lt;Personel&gt; personelList;
  
      private int personel_id;
      private String pname;
      private String pfamily;
      private String paddress;
      private String pphone;
      public IPersonelService getPersonelservice() {
          return personelservice;
      }
      public void setPersonelservice(IPersonelService personelservice) {
          this.personelservice = personelservice;
      }
      public List&lt;Personel&gt; getPersonelList() {
          personelList=new ArrayList&lt;Personel&gt;();
          personelList.addAll(getPersonelservice().getPersonels());
          return personelList;
      }
      public void setPersonelList(List&lt;Personel&gt; personelList) {
          this.personelList = personelList;
      }
      //getter and setter method
  
      public void addPersonel(){
          Personel personel=new Personel();
          personel.setPaddress(getPaddress());
          personel.setPersonel_id(getPersonel_id());
          personel.setPfamily(getPfamily());
          personel.setPname(getPname());
          personel.setPphone(getPphone());
          getPersonelservice().addPersonel(personel);
      }
  
  }
  </code></pre>
  
  <p>personel.xhtml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html dir="rtl" 
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:p="http://primefaces.org/ui"
   xmlns:f="http://java.sun.com/jsf/core"
   xmlns:fn="http://java.sun.com/jsp/jstl/functions"
  &gt;
  &lt;h:head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;اطلاعات پرسنلی&lt;/title&gt;
  &lt;/h:head&gt;
  &lt;h:body&gt;
  &lt;h1&gt;اضافه کردن پرسنل جدید&lt;/h1&gt;
          &lt;h:form&gt;
  
              &lt;h:panelGrid columns="4" &gt;
                شماره پرسنلی : 
                  &lt;h:inputText id="id" value="#{personelMB.personel_id}" 
                      size="20" required="true"
                      label="id" &gt;
                  &lt;/h:inputText&gt;
                  &lt;br&gt;&lt;/br&gt;
                  نام : 
                  &lt;h:inputText id="name" value="#{personelMB.pname}" 
                      size="20" required="true"
                      label="Name" &gt;
                  &lt;/h:inputText&gt;
  
                   نام خانوادگی: 
                  &lt;h:inputText id="family" value="#{personelMB.pfamily}" 
                      size="20" required="true"
                      label="family" &gt;
                  &lt;/h:inputText&gt; 
  
                  آدرس : 
                  &lt;h:inputTextarea id="address" value="#{personelMB.paddress}" 
                      cols="30" rows="10" required="true"
                      label="Address" &gt;
                  &lt;/h:inputTextarea&gt;
  
  
            تلفن:  
                  &lt;h:inputText id="tel" value="#{personelMB.pphone}" 
                      size="20" required="true"
                      label="tel" &gt;
                  &lt;/h:inputText&gt; 
              &lt;/h:panelGrid&gt;
  
              &lt;h:commandButton value="درج اطلاعات" action="#{personelMB.addPersonel()}" /&gt;
  
          &lt;/h:form&gt;
   &lt;h2&gt;مشاهده اطلاعات پرسنل&lt;/h2&gt;  
   &lt;h:form prependId="false"&gt;  
  
      &lt;p:dataTable id="dataTable" var="personel" value="#{personelMB.getPersonelList()}"&gt;  
  
          &lt;f:facet name="header"&gt;  
              اطلاعات پرسنل 
          &lt;/f:facet&gt;  
  
          &lt;p:column&gt;  
              &lt;f:facet name="header"&gt;  
                 شماره پرسنلی  
              &lt;/f:facet&gt;  
  
              &lt;h:outputText value="#{personel.personel_id}" /&gt;  
  
              &lt;f:facet name="footer"&gt;  
                  کدملی 
              &lt;/f:facet&gt;  
          &lt;/p:column&gt;  
  
          &lt;p:column headerText="نام"&gt;  
              &lt;h:outputText value="#{personel.pname}" /&gt;  
          &lt;/p:column&gt;  
  
          &lt;p:column headerText="نام خانوادگی"&gt;  
              &lt;h:outputText value="#{personel.pfamily}" /&gt;  
          &lt;/p:column&gt;  
  
          &lt;p:column headerText="آدرس"&gt;  
              &lt;h:outputText value="#{personel.paddress}" /&gt;  
          &lt;/p:column&gt;  
     &lt;p:column headerText="تلفن"&gt;  
              &lt;h:outputText value="#{personel.pphone}" /&gt;  
          &lt;/p:column&gt;
          &lt;f:facet name="footer"&gt;  
              In total there are #{fn:length(personelMB.getPersonelList())} personels.  
          &lt;/f:facet&gt;  
  
      &lt;/p:dataTable&gt;  
  
  &lt;/h:form&gt;  
  
  &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>but i have this error:</p>
  
  <pre><code>description The server encountered an internal error () that prevented it from fulfilling this request.
  
  exception 
  
  javax.servlet.ServletException: /personel.xhtml @58,88 value="#{personelMB.getPersonelList()}": Property 'getPersonelList' not found on type managedbean.PersonelBean
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:321)
  
  
  root cause 
  
  javax.el.PropertyNotFoundException: /personel.xhtml @58,88 value="#{personelMB.getPersonelList()}": Property 'getPersonelList' not found on type managedbean.PersonelBean
      com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:97)
      org.primefaces.component.api.UIData.isLazyLoading(UIData.java:170)
      org.primefaces.component.datatable.DataTableRenderer.encodeMarkup(DataTableRenderer.java:187)
      org.primefaces.component.datatable.DataTableRenderer.encodeEnd(DataTableRenderer.java:107)
      javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:879)
      javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)
      javax.faces.render.Renderer.encodeChildren(Renderer.java:164)
      javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:849)
      javax.faces.component.UIComponent.encodeAll(UIComponent.java:1643)
      javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646)
      javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646)
      com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:389)
      com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:127)
      com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117)
      com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
      com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)
  </code></pre>
  
  <p>i don't know what is wrong but my addPersonel() works well.</p>