while working on Trinidad 2 I checked JavaDoc (hosted at java.sun.com)
and MyFaces impl for UIComponentBase for setParent().
The JavaDoc says:
<snip>
This method will cause an PostAddToViewEvent to be published and if
parent.isInView() returns true an PostAddToViewEvent will be published
as well.
</snip>
MyFaces basically queues two events:
-PostAddToViewEvent
-PreRemoveFromViewEvent
Generally I think the JavaDoc should be polished to better reflect the
total algorithm...
Also, I found it funny that the spec doesn't mention the
PostAddToViewEvent class at all.
Is that an oversight ?