UIComponent.getChildren() says the following about PostAddToViewEvent delivery:
"After the child component has been added to the view, if the following condition is not met:
FacesContext.isPostback() returns true and FacesContext.getCurrentPhaseId() returns
Application.publishEvent(javax.faces.context.FacesContext, java.lang.Class, java.lang.Object) must be
called, passing PostAddToViewEvent.class as the first argument and the newly added component as the
1. We do actually deliver PostAddToViewEvents during restore view when partial state saving is
2. We don't actually want to deliver PostAddToViewEvents during render response when Facelets
temporarily removes/re-adds existing components from the tree.
3. These requirements are not specified in UIComponent.setParent(), which also discusses
"This method will cause an PostAddToViewEvent to be published and if parent.isInView() returns true an
PostAddToViewEvent will be published as well."
The getChildren()/setParent() documentation should either be consistent, or we should remove the doc
from one of these locations.