title: JSF/Primefaces- Action listener on Command button not getting called
body: <p>I am using JSF2.0 with Prime Faces 3.2. I have a data table with a column that has two command buttons. The second command button is rendered based on a condition. Everything works well until the data table is filtered. Once filtered the first command button without the rendered attribute calls my actionListener without any issues, whereas the second command button with the rendered attribute does not. </p>
  
  <p>PS:The reason i am using f:param intead of setPropertyActionListener is because of a bug in primefaces datatable that passes the wrong row's id when filtered.</p>
  
  <p>Here is my code, any insight into this issue would be great.</p>
  
  <pre><code>&lt;p:column headerText="Column1" filterMatchMode="contains" filterBy="#{item.name}" sortBy="#{item.name}"&gt;
                         &lt;h:outputText value="#{item.name}" style="float:left" /&gt;
                          &lt;span class="inlineButton"&gt; 
                          &lt;p:commandButton id="selectBtn" icon="select"
                              oncomplete="dialog1.show()" actionListener="#{controller.setItem}"&gt;                         
                              &lt;f:param name="itemId" value="#{item.id}"/&gt;
                          &lt;/p:commandButton&gt;
  
                      &lt;p:commandButton id="delBtn" icon="delete"
                          actionListener="#{controller.setItem}"
                          oncomplete="delConfirm.show()"
                          rendered="#{not empty item.id}"&gt;                            
                          &lt;f:param name="itemId" value="#{item.id}"/&gt;
                      &lt;/p:commandButton&gt;
                      &lt;/span&gt;
                  &lt;/p:column&gt;
  </code></pre>