ADF 11G : How to show the Processing state using Java Script?
Java Scripts
function enforcePreventUserInput(evt){
var popup = AdfPage.PAGE.findComponentByAbsoluteId('p1');
if (popup != null){
AdfPage.PAGE.addBusyStateListener(popup,handleBusyState);
evt.preventUserInput();
}
}
function handleBusyState(evt){
var popup = AdfPage.PAGE.findComponentByAbsoluteId('p1'); //P1 is the popupId. which have images.
if(popup!=null){
if (evt.isBusy()){
popup.show();
}
else{
popup.hide();
AdfPage.PAGE.removeBusyStateListener(popup, handleBusyState);
}
}
}
Command button code
Code for popup: