Description
There is a small bug on PartialViewContextImpl.findHeadComponent. It says this:
private UIComponent findHeadComponent(UIViewRoot root)
{
for (UIComponent child : root.getChildren())
{
if (child instanceof HtmlHead)
else
{
for (UIComponent grandchild : child.getChildren())
{
if (child instanceof HtmlHead)
{ return child; }
}
}
}
return null;
}
but it should be this:
private UIComponent findHeadComponent(UIViewRoot root)
{
for (UIComponent child : root.getChildren())
{
if (child instanceof HtmlHead)
{ return child; }
else
{
for (UIComponent grandchild : child.getChildren())
{
if (grandchild instanceof HtmlHead)
}
}
}
return null;
}
Usually h:head and h:body are direct children of UIViewRoot, so it is difficult to see any problem. This is only relevant when org.apache.myfaces.STRICT_JSF_2_REFRESH_TARGET_AJAX web config param is set to true.