title: Multiple rows are getting selected in P:DataTable even when Single Selection Mode is enabled
body: <p>I have an JSF-EJB application where i am using  with single selection mode. The Datatable is part of a Dialog which appears when user clicks on Save button. First time, none of the rows are selected in the DataTable which is correct. now when user selects a row. and closes this dialog. and Open this Dialog again. Both the rows in the DataTable are selected. </p>
  
  <p>Below is the code being used.
  Please help.</p>
  
  <p>XHTML:
      </p>
  
  <pre><code>                    &lt;p:dataTable var="address" id="confirmDataTable"
                          value="#{householdHomeAddressBean.normalizedAddressList}"
                          selection="#{householdHomeAddressBean.selectedAddress}"
                          rowKey="#{address.id}" styleClass="confirmAddTable"&gt;
                          &lt;p:column selectionMode="single"
                              style="width:40px;text-align:center" id="radioCol"&gt;
      &lt;/p:column&gt;
                          &lt;p:column &gt;
                          &lt;p:outputLabel value="#{address.message}"/&gt;
                          &lt;/p:column&gt;
                          &lt;p:column headerText="Street Address" id="headerStreet"&gt;
                              &lt;p:outputLabel value="#{address.addrLine1}" /&gt;  &lt;p:outputLabel value="#{address.addrLine2}" /&gt;,
  
                          &lt;/p:column&gt;
                          &lt;p:column headerText="County" id="headerCounty"&gt;
                              &lt;p:outputLabel value="#{address.countyName}" /&gt;
                          &lt;/p:column&gt;
  
                      &lt;/p:dataTable&gt;
  
                      &lt;p:commandButton styleClass="fl-right btn" value="OK" process="@form" validateClient="true" update="@form"
                          action="#{householdHomeAddressBean.saveAddress}"&gt;
  
                      &lt;/p:commandButton&gt;
                      &lt;p:commandButton styleClass="fl-left btn" value="Cancel"
                          onclick="PF('addressDialog').hide();"&gt;&lt;/p:commandButton&gt;
                  &lt;/p:dialog&gt;
  </code></pre>
  
  <p>In the Managed Bean:</p>
  
  <pre><code>public void saveAddress() {
      context = RequestContext.getCurrentInstance();
      context.execute("PF('addressDialog').hide();");
  </code></pre>
  
  <p>//*******************code for Persistence**************///////////<br>
      }</p>
  
  <p>Please let me know what m i doing wrong.</p>