[
https://issues.apache.org/jira/browse/MYFACES-3975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Leonardo Uribe resolved MYFACES-3975.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.2.8
Assignee: Leonardo Uribe
I see. The spec doesn't mention the exact conditions how PreClearFlashEvent is
triggered, but I think a simple check if the map is empty or not does not harm.
Thanks to Jay Sartoris for provide the example.
> PreClearFlashEvent called on every JSF request regardless of Flash use
> ----------------------------------------------------------------------
>
> Key: MYFACES-3975
> URL: https://issues.apache.org/jira/browse/MYFACES-3975
> Project: MyFaces Core
> Issue Type: Bug
> Components: JSR-344
> Affects Versions: 2.2.7
> Reporter: Jay Sartoris
> Assignee: Leonardo Uribe
> Priority: Minor
> Fix For: 2.2.8
>
> Attachments: JSF22FlashEvents.war
>
>
> The new javax.faces.event.PreClearFlashEvent EvenListener in JSF 2.2 is
> called on every request, regardless of it uses Flash or not.
> On a normal request without any use of Flash, you can see this output from
> the SystemEventListener in the attached testcase:
> --------
> PreClearFlashEvent processEvent called
> PreClearFlashEventListener is and instance of PreClearFlashEvent
> --------
> I tested this same application with Mojarra RI 2.2.10 and it does not call
> this SystemEventListener at all. I only see it called when using Flash on
> Mojarra.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)