You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Volodymyr Siedlecki (Jira)" <de...@myfaces.apache.org> on 2024/09/07 01:11:00 UTC
[jira] [Created] (MYFACES-4680) 4.1 TCK Failure: Spec1396IT#testViewScopedWebsocket
Volodymyr Siedlecki created MYFACES-4680:
--------------------------------------------
Summary: 4.1 TCK Failure: Spec1396IT#testViewScopedWebsocket
Key: MYFACES-4680
URL: https://issues.apache.org/jira/browse/MYFACES-4680
Project: MyFaces Core
Issue Type: Bug
Affects Versions: 4.1.0-RC2, 4.0.0, 2.3.10
Reporter: Volodymyr Siedlecki
Ajax requests do not occur when they are registered a websocket tag, from what I could gather.
Facelet: https://github.com/jakartaee/faces/blob/4.1.0-RELEASE/tck/faces23/websocket/src/main/webapp/spec1396ViewScopedWebsocket.xhtml#L39
{code:java}
<f:websocket channel="view" scope="view" onopen="function(){document.getElementById('opened').innerHTML='yes';}">
<f:ajax event="renderAjaxOutput" render="ajaxOutput" />
</f:websocket>{code}
Link to Test: [https://github.com/jakartaee/faces/blob/4.1.0-RELEASE/tck/faces23/websocket/src/test/java/ee/jakarta/tck/faces/test/javaee8/websocket/Spec1396IT.java#L94]
I test the same TCK app on Mojarra, and it sends out two XHR requests when the button is clicked. One for the button click and another for the renderAjaxOutput event.
MyFaces only handle the XHR for the button click.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)