title: JSF: CommandLink not working with dataTable and ajax
body: <p>I have a commandLink inside a dataTable. dataTable is populated by an ajax call. But my commandLink is not pointing to the correct location. Here is the code.</p>
  
  <pre><code>&lt;h:form id="form1"&gt;
      &lt;h:outputLabel value="Search Movie: " /&gt; &lt;h:inputText value="#{movieBean.movie.name}" id="inputName"&gt;
          &lt;f:ajax render="dTbl" listener="#{movieBean.searchMovie}" execute="inputName" /&gt;
          &lt;/h:inputText&gt;&lt;br/&gt;
      &lt;h:commandButton type="reset" value="Clear" /&gt;
      &lt;h:dataTable id="dTbl" value="#{movieBean.movies}" var="movies" rendered="#"&gt;
          &lt;h:column&gt;
              &lt;f:facet name="header"&gt;  
                  &lt;h:outputText value="Name" /&gt;  
              &lt;/f:facet&gt;
              &lt;h:commandLink action="#{movieBean.loadMovieDetails}"&gt;
                  &lt;h:outputText value="#{movies.name}" /&gt;
              &lt;/h:commandLink&gt;
          &lt;/h:column&gt;
          &lt;h:column&gt;
              &lt;f:facet name="header"&gt;  
                  &lt;h:outputText value="ISBN" /&gt;  
              &lt;/f:facet&gt;   
              &lt;h:outputText value="#{movies.isbn}"&gt;&lt;/h:outputText&gt;
          &lt;/h:column&gt;
          &lt;h:column&gt;
              &lt;f:facet name="header"&gt;  
                  &lt;h:outputText value="Release Date" /&gt;  
              &lt;/f:facet&gt;   
              &lt;h:outputText value="#{movies.releaseDate}"&gt;&lt;/h:outputText&gt;
          &lt;/h:column&gt;
          &lt;h:column&gt;
              &lt;f:facet name="header"&gt;  
                  &lt;h:outputText value="Star Rating" /&gt;  
              &lt;/f:facet&gt;   
              &lt;h:outputText value="#{movies.starRating}"&gt;&lt;/h:outputText&gt;
          &lt;/h:column&gt;
      &lt;/h:dataTable&gt;
      &lt;/h:form&gt;   
  </code></pre>
  
  <p>   </p>
  
  <p>Any help is really appreciated.
  Thanks
  Imad</p>