Actually, I had a scenario where the messages where saved in one action in the
session scope, since I wanted to redirect to another action. At this action, I
get all the messages back and added a couple of information messages to the
user. When I used the getMessages() I noticed it just checked for the messages
object in the request scope, while I think the correct behaviour would be to
check in both scopes.
AppFuse implements a BaseAction with getMessages() and getErrors() that do check
in both scopes, and I had to implement these methods in a BaseAction of mine to
work properly. Otherwise I would have to save the messages in the request scope
and stop redirecting, what I wouldn't like to do.
What do you think?