JSF: error messages inside the catch block does not appear on the screen

1

I have a JSF application and I created a BaseBean class to generate the messages that appear on the screen when an event occurs.

Well, on the ManagedBean when I call the BaseBean class to send a message to the user right after an instruction the message appears on the screen. But when the code snippet is inside a try / catch block and this code raises the exception by entering the catch block. And when I call the BaseBean class to send the error message to the user, nothing appears on the screen.

That is, in the catch block the message call does NOT appear on the screen!

Calling the class in the catch block:

BaseBeanclass:

pages:

    
asked by anonymous 16.03.2015 / 14:29

0 answers