Description
When PSS is disabled, the algorithm to restore view state disable event processing, but that cause setInView() is not called. Later, when a dynamic component is added using c:if, since setInView is false, PostAddToViewEvent is not called. With PSS enabled everything works well.
The solution is when processing events is disabled, call another method that does not propagate the event but call setInView.