Bean現在のcheckBox選択値の取得
1275 ワード
/**
*
* @param actionEvent
*/
public void actionSetParam(ActionEvent actionEvent) {
if (JSFUtils.resolveExpression("#{pageFlowScope.cz}") == null) { //
return;
}
DCIteratorBinding dcIt = ADFUtils.findIterator("JyglJyxysfpView1Iterator");
ViewObject xysfpImpl = dcIt.getViewObject();
Row[] rows = xysfpImpl.getFilteredRows("IsChecked", true);
int length = rows.length;
String cz = JSFUtils.resolveExpression("#{pageFlowScope.cz}").toString();
if (length == 0) {
JSFUtils.addFacesErrorMessage(" ");
return;
} else if (cz.equals("update") && length > 1) {
JSFUtils.addFacesErrorMessage(" ");
return;
} else if (cz.equals("delete")) { //
this.action = "delete";
return;
} else {
this.action = "update";
xysfpImpl.setCurrentRow(rows[0]);
return;
}
}
一括削除