1 Reply Latest reply on Nov 18, 2007 2:50 PM by Yevgen Kravchenko

    scrollableDataTable and getRowData

    James Holstead Newbie

      getRowData() is returning null. Data is displaying fine via value actionAttributeCombos. I've tried binding with UIData and UIScrollableDataTable. What object type am I suppose to bind to? How does selection attribute work? I'm not finding any advanced examples or documentation for this component. Suggestions?

      <rich:scrollableDataTable rowKeyVar="rkv"
       height="300px" width="400px"
       id="list" frozenColCount="1"
       columnClasses="col"
       value="#{NEPABean.actionAttributeCombos}"
       var="cur"
       binding="#{NEPABean.linkedDataTable}"
       selection="#{NEPABean.selectedAAC}">
       <a4j:support event="onselectionchange" actionListener="#{NEPABean.selectAACListener}" />
      .....


      
       private UIScrollableDataTable linkedDataTable;
      
       private Selection selectedAAC;
      
       public void selectAACListener(ActionEvent evt) {
       Object o1 = linkedDataTable.getData();
       Object o2 = linkedDataTable.getRowData();
       Object o3 = linkedDataTable.getRowKey();
       // o1,o2,o3 are null
       return;
       }
       // ... getters and setters
      


      Thank you.