如何使用 ADF 从 f:selectitems 中删除 Selectitem?
How to remove Selectitem from f:selectitems using ADF?
我想使用 ADF 从 f:selectitems 中删除 Selectitem 并在单击按钮时管理 bean
您可以使用此代码清除选择
public BindingContainer getBindings() {
return BindingContext.getCurrent().getCurrentBindingsEntry();
}
/**Method to Clear selected value of shuttle (Reset Shuttle)
* @param actionEvent
*/
public void resetShuttleAction(ActionEvent actionEvent) {
BindingContainer bc = this.getBindings();
JUCtrlListBinding listBindings = (JUCtrlListBinding)bc.get("DepartmentsView1");
listBindings.clearSelectedIndices();
}
详情请查看 - http://www.awasthiashish.com/2013/12/clear-selected-values-of-shuttle.html
我想使用 ADF 从 f:selectitems 中删除 Selectitem 并在单击按钮时管理 bean
您可以使用此代码清除选择
public BindingContainer getBindings() {
return BindingContext.getCurrent().getCurrentBindingsEntry();
}
/**Method to Clear selected value of shuttle (Reset Shuttle)
* @param actionEvent
*/
public void resetShuttleAction(ActionEvent actionEvent) {
BindingContainer bc = this.getBindings();
JUCtrlListBinding listBindings = (JUCtrlListBinding)bc.get("DepartmentsView1");
listBindings.clearSelectedIndices();
}
详情请查看 - http://www.awasthiashish.com/2013/12/clear-selected-values-of-shuttle.html