@HandlerInput(name = "tableDD", type = com.sun.webui.jsf.component.DropDown.class),
@HandlerInput(name = "validationField", type = com.sun.webui.jsf.component.DropDown.class),
@HandlerInput(name = "methodValue", type = String.class)})
public static void setDisableConnectionPoolTableField(HandlerContext handlerCtx) {
String methodValue = (String) handlerCtx.getInputValue("methodValue");
DropDown tableDD = (DropDown) handlerCtx.getInputValue("tableDD");
DropDown validationDD = (DropDown) handlerCtx.getInputValue("validationField");
if ("table".equals(methodValue)) {
tableDD.setDisabled(false);
validationDD.setDisabled(true);
} else if ("custom-validation".equals(methodValue)) {
tableDD.setDisabled(true);
validationDD.setDisabled(false);
} else {
tableDD.setDisabled(true);
validationDD.setDisabled(true);
}
}