popup and message alert
From inside a popup, when a button is clicked it executes a managed bean,
which has the below code snippet.
this.mypopup.hide();
mymethod();
In side the mymethod,
I have the below code at the very end to show a "Process Completed" alert box.
String messageText;
messageText="Process completed.";
FacesMessage fm = new FacesMessage(messageText);
fm.setSeverity(FacesMessage.SEVERITY_INFO);
FacesContext context = FacesContext.getCurrentInstance();
context.addMessage(null, fm);
When this mymethod() is called directly from the main page, it does show the alert box.
But when it is called from within a popup managed bean, using the below code it does not show the alert box.
this.mypopup.hide();
mymethod();
I confirmed with debug message that those lines are executed but the alert message box does not show up.
Any ideas why, please.
Thanks