sorry for the late answer, but here my 2c.
- Visit all (non-transient) components, but…
- Skip iteration (for UIData-like cases). And…
- Avoid setting up context.
Is tree visiting even the right tool for the job?
If facets and children iteration is ok, we should probably stay with
it - except there is a performance penalty.
Should we perhaps avoid this complexity altogether by sticking with a
+ children traversal (eg. as currently implemented by MyFaces) for partial
probably good old facets and children traversal is in this case better
(and simpler to understand for everyone involved). Tree visiting is
really only there for making sure context can be set up - if this is
not necessary, then it should not be done.
Or are there cases where component implementations do in fact need
over the way that this traversal is performed, in which case an internal
iteration solution (like tree visiting) is necessary?
I have not yet seen a use-case where for state saving/restoring
context would be necessary, but I might be missing something...
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces