philwebb/spring-webflow — comment on commit 0fe9663b9db3203edbd908b5864219d6d89d25a6
File:  line 0
By rstoyanchev:

Right, the JsfViewFactory of course! So we have to deliver the event ourselves then. The question is what the best way is. I wonder why PostRestoreStateEvent is handled this way in Mojarra's RestoreViewPhase and whether calling facesContext.getApplication().publishEvent(..) would work. I presume there is some reason why it's not done that way that we should probably understand. What does MyFaces do?

If we can't use publishEvent, I would prefer to see a private method in JsfViewFactory that does handles PostRestoreStateEvent explicitly also indicating the reason we had to do it this way. As opposed to having a general method in JsfUtils with a ComponentEventFactory. My point is that this looks right now like a very custom case. No other ComponentSystemEvent requires this type of handling.