I have a seemingly simple question. I'm trying to figure out how to add a message to the FacesMessages collection via pages.xml based on a global variable. I know I can do it easily with a page action, but I'd prefer not to have to create a class just for this simple task.
Basically, when a user requests this page, an attribute of their profile is checked (profile is session-scoped). If true, then I want to add the message and show that page as normal.