In my screens while adding a student, I am displaying messages like "student name already exists or student created succesfully".
But what I am doing is I am assigning this message to a variable in bean and displaying it.
Problem is the messages are not getting cleared when I open other page and come back to this page.
How can I come out of this problem?
Please help me..
Thanks in advance.
such bean should be request scoped. or messages should be cleaned before navigation.
B.t.w. why you just not using FacesMessage's?
Retrieving data ...