How to deal with jsf caching of managed bean data?
Lets say I have a menu with 5 links in it.
I clicked link 1 that displayed a form, I filled up a form then submitted it. In the same page, a message in the screen that says "New Member was successfully added" was displayed.
I clicked link 2 that shows another module, then I click link1 again, but my problem is the message "New Member was successfully added" was still there. How do I go about erasing that message? Do I need to have a hold of that managed bean then erase that bean from context? LIke this
FacesContext context = FacesContext.getCurrentInstance();
context.getExternalContext().getSessionMap().remove("managed bean in link 1");
Is there any other way?

