title: Pass a value to method onSucces
body: <p>I am working with tapestry in java and I have in a tml file a loop with a button in each row. I need to pass the value of the element in the row to the onSuccess() method when the button is clicked.
  I've tried it with t: context = "value" in the button but it does not work and I can't find a solution.</p>
  
  <p>TML:</p>
  
  <pre><code>&lt;tr t:type="Loop" t:source="movieList" t:value="movie"&gt;
      &lt;td&gt;
          &lt;a href="#" t:type="PageLink" t:page="index"&gt;
              ${movie.title}
          &lt;/a&gt;
      &lt;/td&gt;
      &lt;td&gt;
          ${movie.score}
      &lt;/td&gt;
      &lt;td&gt;
          &lt;form t:type="Form" class="form-horizontal" t:id="deleteMovie"&gt;
              &lt;button type="submit" t:context="movie.movieId" class="btn btn-primary"&gt;
                  &lt;img src="${context:i/basura.png}" width="25" heigth="25"/&gt;
              &lt;/button&gt;
          &lt;/form&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>Java method:</p>
  
  <pre><code> @OnEvent(value = "success", component ="deleteMovie")
   Object[] onSuccesFromDeleteMovie(Long movieId) throws InstanceNotFoundException {
       movieService.removeMovie(movieId);
       return new Object[] {startIndex};
   }
  </code></pre>