myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Kurz <>
Subject Re: [MyFaces 2] visitTree
Date Thu, 07 Jan 2010 15:42:36 GMT

I currently try to get f:ajax running inside a composite component. So I 
  would also say it is necessary to include the facets (use 
getFacetsAndChildren() instead of getChildren()) in visitTree().

I already fixed this issue in UIComponent.visitTree() (see [1]), BUT 
there is a potential conflict with UIData.visitTree() (also see [2]). 
The result, however, is that facets of columns are visited twice. I 
noticed this because UIDataTest.testVisitTree() fails unless the line 
expecting the column facet is in the code twice.

I tried the same example with Mojarra with the same result: the column 
facet is visited twice.



Matthias Wessendorf schrieb:
> Hi,
> checking a bit the diff between visitTree() in MyFaces2 and Trinidad 1.2.x.
> In MyFaces2, I see that on the ACCEPT case the just ask for the
> children, but not for the facets.
> Just an oversight? I mean, sure the spec (and its javadoc) don't say
> much... however the spec's
> visitTree() has been designed having Trinidad in mind, so I think it is fine...
> thanks,
> matthias

View raw message