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!

Adding a FacesMessage then navigating to another page

japherMay 7 2010 — edited Aug 23 2011
Hi,

I have a backing bean that adds a faces message then returns an outcome like:
  FacesContext.getCurrentInstance().addMessage(null, infoMessage);     
  return "back";
I've found that the message doesn't get displayed, even though the target jspx does include the af:messages tag. It seems like the new page operates in a completely different context and the messages are lost. If I return null from the backing bean instead so that no navigation takes place, the message displays correctly.

Is there a way to add a message and navigate to another page? (i.e. so the message is displayed on the target page).

I'm using ADF Faces 11.1.1.2.0.

Cheers!
This post has been answered by 487442 on May 7 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 20 2011
Added on May 7 2010
8 comments
2,416 views