Section 14.2.2 of the Faces 4.0 specification states that the "following keywords can be used for the value of the “execute” and “render” attributes." @this is included in the list of keywords. Note that the spec says that they can be used, it does not require them.
Section 14.2.3 goes on to provide an example showing that @this is equivalent to using the object's id:
<h:commandButton id="button1" value="submit"
onclick="faces.ajax.request(this,event, {execute:’@this’});" />
is the same as:
<h:commandButton id="button1" value="submit">
onclick="faces.ajax.request(this,event, {execute:’button1’});" />
This test should be updated to accept either pattern as valid.
Challenged Tests: ee.jakarta.tck.faces.test.javaee8.searchExpression.Spec1238IT#test
TCK Version: Jakarta Faces 4.0.x
Tested Implementation: Open Liberty -- containing MyFaces 4.0
Description: The challenged test includes the following assertion:
Which is looking for a snippet like this one produced by Mojarra:
MyFaces produces the following, with
input
instead of@this
:Section 14.2.2 of the Faces 4.0 specification states that the "following keywords can be used for the value of the “execute” and “render” attributes."
@this
is included in the list of keywords. Note that the spec says that they can be used, it does not require them.Section 14.2.3 goes on to provide an example showing that
@this
is equivalent to using the object'sid
:This test should be updated to accept either pattern as valid.