Closed brideck closed 1 year ago
From my point of view, this is a valid challenge. @arjantijms @BalusC @tandraschko do you agree?
@arjantijms @BalusC I wanted to call attention to this one and get your thoughts. Thanks!
Valid.
And the spec needs to be updated to explicitly say "immediate child" or "direct child" instead of "child".
Because, especially in CSS terminology, f:view -> h:head -> f:metadata still makes the f:metadata a visible child of f:view.
Challenged Tests: ee.jakarta.tck.faces.test.javaee7.protectedview.Bug22995287IT
TCK Version: Jakarta Faces 4.0.x
Tested Implementation: Open Liberty -- containing MyFaces 4.0
Description: The VDL doc for
<f:metadata>
states "This must be a child of the<f:view>
." However, Page2 and Page3 in this test application both have it as a child of the<h:head>
instead.The specification is silent on what exactly is supposed to happen when this stipulation of the spec is violated. As pointed out in a Mojarra issue, MyFaces throws an exception in this case and Mojarra allows it. Accordingly, these tests fail for us with exceptions like the following:
The consensus in the Mojarra issue seems to be that MyFaces behavior is the better one in this instance. Regardless, the TCK application should be rewritten in order to be in compliance with the specification.