Hi,
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:panelGroup>
<ice:dataTable var="_sperimentazione" value="#{sperimentazioneList.resultList}">
<ice:column>
<ice:rowSelector selectionListener="#{testTableSelection.selectionListener}"/>
<f:facet name="header"><ice:outputText value="id"/></f:facet>
<ice:outputText value="#{_sperimentazione.id}"/>
</ice:column>
<ice:column>
<f:facet name="header"><ice:outputText value="idAmministrativo"/></f:facet>
<ice:outputText value="#{_sperimentazione.idAmministrativo}"/>
</ice:column>
<ice:column>
<f:facet name="header"><ice:outputText value="Tipo di sperimentazione"/></f:facet>
<ice:outputText value="#{_sperimentazione.clsSperimentazione.tipo}"/>
</ice:column>
<ice:column>
<f:facet name="header"><ice:outputText value="Descrizione"/></f:facet>
<ice:outputText value="#{_sperimentazione.descrizione}"/>
</ice:column>
</ice:dataTable>
</ice:panelGroup>This is the controller:
@Name("testTableSelection")
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.
Please see ICEfaces forum posting