title: JSF 2 + RichFaces - problem with setting the variable in managed bean
body: <p>I have the following code and the <code>commandLink</code> on each row should pass <code>username</code> to the bean but it passes null. Why is that? The <code>DataProviderBean</code> is <code>SessionScoped</code>.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;h:form&gt;
      &lt;rich:dataTable value="#{dataProviderBean.profileStats}" var="item"
          id="statsTable"&gt;
          &lt;f:facet name="noData"&gt;No stats are available.&lt;/f:facet&gt;
          &lt;rich:column filterValue="#{filteringBean.usernameFilter}"
              filterExpression="#{fn:containsIgnoreCase(item.profile.username, filteringBean.usernameFilter)}"&gt;
              &lt;f:facet name="header"&gt;
                  &lt;h:outputText value="Profile" /&gt;
                  &lt;br /&gt;
                  &lt;h:inputText value="#{filteringBean.usernameFilter}"&gt;
                      &lt;a4j:ajax event="keyup" render="statsTable@body" execute="@this" /&gt;
                  &lt;/h:inputText&gt;
              &lt;/f:facet&gt;
              #{item.profile.username}
          &lt;/rich:column&gt;
          &lt;rich:column&gt;
              &lt;f:facet name="header"&gt;AO Messages Count&lt;/f:facet&gt;
                  #{item.aoMessagesCount}
          &lt;/rich:column&gt;
          &lt;rich:column&gt;
              &lt;f:facet name="header"&gt;MO Messages Count&lt;/f:facet&gt;
              #{item.moMessagesCount}
          &lt;/rich:column&gt;
          &lt;rich:column&gt;
              &lt;f:facet name="header"&gt;Administration&lt;/f:facet&gt;
              &lt;a4j:commandLink execute="@this" render="@none"
                  oncomplete="#{rich:component('confirmPane')}.show()"&gt;
                  &lt;h:graphicImage url="./resources/images/delete.png" alt="Delete" /&gt;
                  &lt;a4j:param value="#{item.profile.username}"
                      assignTo="#{deleteStatsBean.username}" /&gt;
              &lt;/a4j:commandLink&gt;
          &lt;/rich:column&gt;
      &lt;/rich:dataTable&gt;
  
      &lt;a4j:jsFunction name="remove" action="#{deleteStatsBean.delete}"
          render="statsTable" execute="@this"
          oncomplete="#{rich:component('confirmPane')}.hide();" /&gt;
  
      &lt;rich:popupPanel id="confirmPane" autosized="true"&gt;
          &lt;h:outputText value="Are you sure you want to delete the profile statistics?" /&gt;
          &lt;br /&gt;
          &lt;a4j:commandButton value="Delete" onclick="remove(); return false;" /&gt;
          &lt;a4j:commandButton value="Cancel"
              onclick="#{rich:component('confirmPane')}.hide(); return false;" /&gt;
      &lt;/rich:popupPanel&gt;
  &lt;/h:form&gt;
  </code></pre>