Stop closing popup when pressing escape(Esc)
function handleDialog(event) {
if(event.getOutcome() == AdfDialogEvent.OUTCOME_CANCEL) {
event.cancel();
}
}
if(event.getOutcome() == AdfDialogEvent.OUTCOME_CANCEL) {
event.cancel();
}
}
<af:clientListener method="handleDialog" type="dialog"/>