Details
Description
FacesMessagesPhaseListener should only save if there's actually something to save, that is only if the globals and/or the components collection are not empty.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Added two simple checks:
if (!globals.isEmpty())
{ facesContext.getViewRoot().getAttributes().put( SAVED_GLOBAL_FACES_MESSAGES_KEY, globals); }if (!components.isEmpty())
{ facesContext.getViewRoot().getAttributes().put( SAVED_COMPONENT_FACES_MESSAGES_KEY, components); }Marking this one as FIXED.