ice:datatable から選択した行データを取得したいですか? これが私のコードです。rowselectorを使用して選択された行データを取得するための提案をお願いします。
バッキングビーン:
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>
行インデックスを取得できるようになりましたが、選択した行の値を取得する必要があります。どうやってやるの?