-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TCK Challenge: <f:metadata> must be a child of <f:view> #1705
Comments
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. |
Clarified spec wrt location of f:metadata
Let Mojarra log a WARNING for now
Backport WARNING message into Mojarra 4.0
…_must_be_a_child_of_f-view Fix #1705 f:metadata must be a child of f:view
Backport WARNING message into Mojarra 4.0
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.
The text was updated successfully, but these errors were encountered: