1 Reply Latest reply on Oct 14, 2009 5:20 PM by judy guglielmin

    DataTable and RowSelector

    Pietro M. Newbie

      I have a problem with RowSelector. My aim is to get what element has been selected from a DataTable by the user.

      At first I tried to see if the actionListener works.

      This is the View part I wrote:

            <ice:dataTable var="_sperimentazione" value="#{sperimentazioneList.resultList}">
                      <ice:rowSelector selectionListener="#{testTableSelection.selectionListener}"/>
                      <f:facet name="header"><ice:outputText value="id"/></f:facet>
                      <ice:outputText value="#{_sperimentazione.id}"/>
                      <f:facet name="header"><ice:outputText value="idAmministrativo"/></f:facet>
                      <ice:outputText value="#{_sperimentazione.idAmministrativo}"/>
                      <f:facet name="header"><ice:outputText value="Tipo di sperimentazione"/></f:facet>
                      <ice:outputText value="#{_sperimentazione.clsSperimentazione.tipo}"/>
                      <f:facet name="header"><ice:outputText value="Descrizione"/></f:facet>
                      <ice:outputText value="#{_sperimentazione.descrizione}"/>

      This is the controller:

       public class TestTableSelectionAct {
            public void selectionListener(RowSelectorEvent rsevt) {
                 System.out.println("Listener select activated");

      I'm using SEAM 2.2.0GA with ICEFaces 1.8.1
      The problem is that the selectionListener is never fired.
      Could someone help me? Thank you.