You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2007/03/03 18:12:50 UTC

[Myfaces Wiki] Update of "Working with DataTable and ActionListeners" by JacekLaskowski

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by JacekLaskowski:
http://wiki.apache.org/myfaces/Working_with_DataTable_and_ActionListeners

The comment on the change is:
Provide a link to ActionListener

------------------------------------------------------------------------------
- If you you have a command link or button in a row of a dataTable, there is an easy way to get to row bean from an ActionListener.
+ If you you have a command link or button in a row of a dataTable, there is an easy way to get to row bean from an [http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/javax/faces/event/ActionListener.html javax.faces.event.ActionListener].
  
  {{{
  <h:dataTable value="#{ResultsBean.hitSet.hits}" var="hit">
@@ -14, +14 @@

  </h:dataTable>
  }}}
  
- By this simple Java code in your subclass of ActionListener you get the row bean.
+ By this simple Java code in your subclass of [http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/javax/faces/event/ActionListener.html javax.faces.event.ActionListener] you get the row bean.
  
  {{{
  public class OrderActionListener implements ActionListener {