title: JSF page doesnot work when i add selectOneMenu (prime faces)
body: <p>i have a managed bean called Lecturer. Lecturer managed bean includes a relation between departments. I want to show all departments stored in the database. when i register a lecturer i need to get its department. </p>
  
  <p>My Lecturer managed bean. i have proper setter and getter methods. i just omit it for clarification. </p>
  
  <pre><code>public class Lecturer 
  {
  
      private String name;
      private String surname;
  
      private String email;
      private String username;
      private String password;
  
  
      private List&lt;Department&gt; departments;
  
      private LecturerService lecturerService;
      private DepartmentService departmentService;
  }
  </code></pre>
  
  <p>my Licturer.xhtml file:</p>
  
  <pre><code>&lt;h:form&gt;
  &lt;f:view&gt;
  &lt;p:panelGrid columns="2"&gt;  
  
  &lt;f:facet name="header"&gt;Lecturer Registration Form&lt;/f:facet&gt; 
  
  &lt;h:outputLabel for="name" value="Name :" /&gt;  
  &lt;p:inputText id="name" value="#{Lecturer.name}" label="Name" required="true" /&gt;
  
  &lt;h:outputLabel for="surname" value="Surname :" /&gt;  
  &lt;p:inputText id="surname" value="#{Lecturer.surname}" label="Surname" required="true" /&gt;
  
  &lt;h:outputLabel for="department" value="Department :" /&gt; 
  
  
  &lt;p:selectOneMenu value="#{Lecturer.departments}" effect="fade" editable="true" var="p" &gt;
  &lt;f:selectItem itemLabel="Select One" itemValue="" /&gt;
  &lt;f:selectItems value="#{Lecturer.departments}" var="lec"
  itemLabel="#{lec.name}" itemValue="#{lec.name}"/&gt;
  &lt;/p:selectOneMenu&gt;
  
  
  &lt;h:outputLabel for="email" value="Email :" /&gt;  
  &lt;p:inputText id="email" value="#{Lecturer.email}" label="Email" required="true" /&gt;
  
  &lt;h:outputLabel for="username" value="User Name :" /&gt;  
  &lt;p:inputText id="username" value="#{Lecturer.username}" label="Email" required="true" /&gt;
  
  &lt;h:outputLabel for="password" value="Password :" /&gt;  
  &lt;p:inputText id="password" value="#{Lecturer.password}" label="Password" required="true" /&gt;
  
  &lt;f:facet name="footer"&gt;
  
   &lt;p:commandButton type="submit"
                  id="lecturer"
                  action="#{Lecturer.registerLecturer}"
                  value="Register" icon="ui-icon-disk"&gt;
  
                  &lt;/p:commandButton&gt;
  
  &lt;/f:facet&gt;
  
  &lt;/p:panelGrid&gt;
  &lt;/f:view&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>my faces-config.xml</p>
  
  <pre><code>&lt;managed-bean&gt;
          &lt;managed-bean-name&gt;Lecturer&lt;/managed-bean-name&gt;
          &lt;managed-bean-class&gt;com.studinfo.controller.Lecturer&lt;/managed-bean-class&gt;
          &lt;managed-bean-scope&gt;session&lt;/managed-bean-scope&gt;
  
          &lt;managed-property&gt;
              &lt;property-name&gt;departmentService&lt;/property-name&gt;
              &lt;property-class&gt;com.studinfo.services.DepartmentService&lt;/property-class&gt;
              &lt;value&gt;#{DepartmentService}&lt;/value&gt;
          &lt;/managed-property&gt;
  
          &lt;managed-property&gt;
              &lt;property-name&gt;lecturerService&lt;/property-name&gt;
              &lt;property-class&gt;com.studinfo.services.LecturerService&lt;/property-class&gt;
              &lt;value&gt;#{LecturerService}&lt;/value&gt;
          &lt;/managed-property&gt;
      &lt;/managed-bean&gt;
  </code></pre>
  
  <p>when i remove the selectOneMenu tag. my page works properly.</p>
  
  <p>any idea about the solution? </p>
  
  <p>Do i must add a converter between string and Department class?</p>