从 RichFaces 3.x 迁移到 RichFaces 4.x:什么替代了 SimpleSelection?

Migrating from RichFaces 3.x to RichFaces 4.x: What Replaces SimpleSelection?

我们的团队终于从 RichFaces 3.3.3 迁移了。我选择了最新的(and final) RichFaces 4.5.14(使用 JSF 2.2/Mojarra 2.2.0)。虽然许多方法无疑也会被改变,但 SimpleSelection 的替代是我目前的头疼。

import org.richfaces.model.selection.SimpleSelection;
private SimpleSelection selection = null;
public void setSelection(SimpleSelection selection) {
    this.selection = selection;
}

是的,我看过许多关于 RichFaces 迁移的其他 SO 文章(例如 this one) , and have been following the (woefully incomplete) RichFaces 3.3.x - 4.x Migration Guide, which was last updated on 31 January 2013. I've also searched the latest documentation and Showcase Demo

RichFaces 4.x 中的 SimpleSelection 已替换为选定对象的集合:

private Collection<Object> yourObjectSelection;

使用选择的示例在 RichFaces showcase 页面上。