Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

popup and message alert

user13469092Jan 19 2012 — edited Jan 20 2012
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 17 2012
Added on Jan 19 2012
17 comments
196 views