title: Commandbutton works only on second click until a <h:selectBooleanCheckbox> on a HashMap is removed
body: <p>I'm working with JSF 2.2.9, i have the following dataTable and buttons:</p>
  
  <pre><code>&lt;h:commandButton id="commandButtonRemoverSelected"
                          actionListener="#{managedBeanName.removeSelected()}"
                          class="btn btn-primary" value="Sim"&gt;
                      &lt;/h:commandButton&gt;
  
      &lt;h:dataTable var="bean" value="#{managedBeanName.beans}" styleClass="table table-hover" 
              binding="#{managedBeanName.dataTable}"&gt;
                  &lt;h:column headerClass="smallColumn"&gt;
                      &lt;f:facet name="header"&gt;
                          &lt;h:selectBooleanCheckbox valueChangeListener="#{managedBeanName.selectAll}"&gt;
                              &lt;f:ajax execute="@form" render="@all" /&gt;
                          &lt;/h:selectBooleanCheckbox&gt;
                      &lt;/f:facet&gt;
                      &lt;h:selectBooleanCheckbox value="#{managedBeanName.registrosSelecionados[bean]}" /&gt;
                  &lt;/h:column&gt;
  
              &lt;/h:dataTable&gt;
  </code></pre>
  
  <p>The button "commandButtonRemoverSelected" just call actionListener on second click. When i remove the following line from datatabe everything works fine (the commandButton is called on first click):</p>
  
  <pre><code>&lt;h:selectBooleanCheckbox value="#{managedBeanName.registrosSelecionados[bean]}" /&gt;
  </code></pre>
  
  <p>So, my managedBean have a MAP called 'registrosSelecionados' that should store a pair "Bean,Boolean". See:</p>
  
  <pre><code>private Map&lt;Bean, Boolean&gt; registrosSelecionados = new HashMap&lt;Bean, Boolean&gt;();
  </code></pre>