title: h:commandLink not working inside dataTable
body: <p>In my JSF file I have below at the start.</p>
  
  <p><code>&lt;h:form&gt;&lt;h:commandLink value="Create New Staff Account" action="adminCreateStaffMember"/&gt;&lt;/h:form&gt;</code>.</p>
  
  <p>By use of this, when I create on <code>Create New Staff Account</code> I get re-directed to the page where I have form to create new account.</p>
  
  <p>BUT, When I use the same inside <code>dataTable</code>, <strong>NO ACTION</strong> is taken. I am still on same page :(</p>
  
  <pre><code>&lt;h:dataTable var="c" value="#{newStaffMemberServiceBean.newStaffMemberDataBeanList}"
    styleClass="order-table"
    headerClass="order-table-header"
    rowClasses="order-table-odd-row,order-table-even-row"
    border="1" id="staffListDataTable" width="100%"&gt;
  
    &lt;h:column&gt;
      &lt;f:facet name="header"&gt;
         Staff Member Name
      &lt;/f:facet&gt;
      &lt;h:form&gt;&lt;h:commandLink value="Create New Staff Account" action="adminCreateStaffMember"/&gt;&lt;/h:form&gt;
    &lt;/h:column&gt;
  &lt;/h:dataTable&gt;
  </code></pre>
  
  <p>Actually what I wanted to print is details of respective staff member where I would be using <code>f:setPropertyActionListener</code>. But as above is not working, I won't go ahead.</p>
  
  <p>Please suggest me where I am going <strong><em>wrong</em></strong>.</p>
  
  <h2>Update 1</h2>
  
  <p>My <code>newStaffMemberServiceBean</code> is in <code>RequestScoped</code></p>
  
  <pre><code>@ManagedBean(name = "newStaffMemberServiceBean")
  @RequestScoped
  public class NewStaffMemberServiceBean {
      // some code
  }
  </code></pre>
  
  <h2>Update 2</h2>
  
  <p>HTML Generated are as below</p>
  
  <p><strong>Outside of <code>dataTable</code></strong></p>
  
  <pre><code>&lt;div align="right"&gt;
  &lt;form id="j_idt35" name="j_idt35" method="post" action="/adminManageStaffMember" enctype="application/x-www-form-urlencoded"&gt;
  &lt;input type="hidden" name="j_idt35" value="j_idt35" /&gt;
  &lt;a href="#" onclick="mojarra.jsfcljs(document.getElementById('j_idt35'),{'j_idt35:j_idt36':'j_idt35:j_idt36'},'');return false"&gt;Create New Staff Account&lt;/a&gt;&lt;input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="2664682277023387375:-3250423983171933030" autocomplete="off" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>Inside <code>dataTable</code></strong></p>
  
  <pre><code>&lt;form id="staffListDataTable:0:j_idt43" name="staffListDataTable:0:j_idt43" method="post" action="/adminManageStaffMember" enctype="application/x-www-form-urlencoded"&gt;
  &lt;input type="hidden" name="staffListDataTable:0:j_idt43" value="staffListDataTable:0:j_idt43" /&gt;
  &lt;a href="#" onclick="mojarra.jsfcljs(document.getElementById('staffListDataTable:0:j_idt43'),{'staffListDataTable:0:j_idt43:j_idt45':'staffListDataTable:0:j_idt43:j_idt45'},'');return false"&gt;Create New Staff Account&lt;/a&gt;&lt;input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="2664682277023387375:-3250423983171933030" autocomplete="off" /&gt;
  &lt;/form&gt;
  </code></pre>