5 Replies Latest reply on Oct 29, 2010 8:00 AM by heckerbob

    Master Detail Reference

    heckerbob Newbie

      Hi All, I want to contruct a sample master detail page. I looked at the example below and it seems to do what I want. As soon as a row is clicked some detail information is displayed in an other table.

       

      http://livedemo.exadel.com/richfaces-demo/richfaces/extendedDataTable.jsf

       

      If I look at the source I see the master data table triggers the detail window with a Ajax event when a different row is selected (see below). What I don't understand is how the actual data is referenced from the master to the detail table. Somehow the data of the selected row is passed to the detail window. I asume this is done using the extendedTableBean.takeSelection method? But how is this method implemented? How does it work?

       

      <a4j:support reRender="selectiontable" id="extended_table_bean_take_selection"
                          action="#{extendedTableBean.takeSelection}"
                          event="onselectionchange" />

       

      Thanks.