1
私はRichFaces 4.0.0.FinalとJSF 2.0のアプリを持っています。私がextendedDataTableで選択を使用しようとすると、それは動作しません。ExtendedDataTable、RichFaces 4 + JSF 2.0で選択が機能しません
<rich:extendedDataTable
id="shipmentList" value="#{shipmentListBean.shipmentList}" var="shipment"
rowClasses="#{shipment.paymentDate == null ? 'unpaidShipment' : null}"
selectionMode="single" noDataLabel="#{msgs.emptyList}"
selection="#{shipmentListBean.selection}"
style="width: 1200px; font-size: 10px; ">
ShipmentListBean:
@ManagedBean
@ApplicationScoped
public class ShipmentListBean implements Serializable {
private Collection<Object> selection = null;
public ShipmentListBean() {
}
public List<ShipmentValueObject> getShipmentList() {
....
}
public Collection<Object> getSelection() {
return selection;
}
public void setSelection(Collection<Object> selection) {
this.selection = selection;
}
}
私はテーブルの行を選択すると、メソッドselSelection(コレクションの選択)で空のコレクションが来るのはなぜ?