0
我想从ice中获取选定的行数据:datatable?这里是我的代码,请给我你的建议,使用rowselector获取选定的行数据。如何使用icefaces获取选定的数据表行?
Backingbean:
public void rowSelectionListener(RowSelectorEvent event) {
System.out.println(event.getRow());
}
JSPX代码:
<ice:rowSelector id="selected" selectionListener="#{inventoryList.rowSelectionListener}" multiple="false" selectedClass="tableRowSelected" mouseOverClass="tableRowMouseOver" />
<f:facet name="header">
<ice:outputText value="Stock #"/>
</f:facet>
<ice:outputText value="#{item.stock}"/>
</ice:column>
现在我能够获得行索引,但我需要选择行值。我怎样才能做到这一点?