title: Illegal Syntax for Set Operation
body: <p>I have a problem in connecting My xhtml page to the managed bean, the action on the commandButton works but when it comes to passing values it doesn't work.
  here is my jsf code:</p>
  
  <pre><code> &lt;h:form id="form" class="form-signin"&gt;
              &lt;p:panel id="panel" header=" Authentification" style="" &gt;
                  &lt;h:panelGrid columns="2" rowClasses="3"&gt;  
                      &lt;h:outputLabel  for="login" value="Nom d'utilisateur :"  styleClass=""/&gt;  
                      &lt;p:inputText id="login" value=" #{authenticationBean.profil.login }" required="true" label="login" &gt;  
                          &lt;f:validateLength minimum="4" /&gt;  
                      &lt;/p:inputText&gt;  
                      &lt;h:outputLabel for="password" value="Mot de passe :" /&gt; 
                      &lt;p:password id="password" value=" #{authenticationBean.profil.password }" required="true" label="password" styleClass=""/&gt; 
  
                      &lt;p:row&gt;
                          &lt;p:commandButton id="loginButton" value="Login" ajax="false" action="#{authenticationBean.validate}" /&gt;
                          &lt;h:messages id="messages" globalOnly="false"/&gt;
                      &lt;/p:row&gt; 
                  &lt;/h:panelGrid&gt;
              &lt;/p:panel&gt; 
          &lt;/h:form&gt;
  </code></pre>
  
  <p>i'm using morphia to map data to mongo db, i have also an entitie called profil and one bean to manage authenfication. here is my athentication bean Code :</p>
  
  <pre><code>public class AuthenticationBean implements Serializable {
  private static final long serialVersionUID = 1L;
  private Profil profil;
  private ProfilDAO profileDao = DAOFactory.getProfilDAO();
  
  public void validate() {
      FacesMessage message = new FacesMessage("Succès de l'inscription !");
      FacesContext.getCurrentInstance().addMessage(null, message);
  
  }
  // getters and setters 
  </code></pre>
  
  <p>here is my profil entitie code :</p>
  
  <pre><code>@Entity("profils")
  public class Profil {
  @Id protected ObjectId _id;
  protected String nomProfil,prenomProfil,login,password;
  @Embedded protected List&lt;Droit&gt; droits;
  @Reference protected Admin admin;
  public Profil() {
  }
  //getters and setters ...
  </code></pre>
  
  <p>this is the eror i get when i submit some data and click the submit button :</p>
  
  <pre><code>javax.el.PropertyNotWritableException: /index.xhtml @29,125 value=" #{authenticationBean.profil.login }": Illegal Syntax for Set Operation
  </code></pre>