You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Milo van der Zee (Jira)" <de...@myfaces.apache.org> on 2025/02/22 01:23:00 UTC

[jira] [Created] (MYFACES-4712) ajax event listener looses 'source' in 'success' event

Milo van der Zee created MYFACES-4712:
-----------------------------------------

             Summary: ajax event listener looses 'source' in 'success' event
                 Key: MYFACES-4712
                 URL: https://issues.apache.org/jira/browse/MYFACES-4712
             Project: MyFaces Core
          Issue Type: Bug
          Components: General
    Affects Versions: 4.0.2
            Reporter: Milo van der Zee


I'm adding an event listener for the ajax events. I do this by calling `faces.ajax.addOnEvent(onEventFunction)` and I expect all forwarded events to have the 'source' value set to the original source that triggered the ajax flow. But this does not seem to work when switching to a different page. It works fine when the view stays on the same page.

This used to work and is needed by RichFaces.

See [https://github.com/MilovdZee/myfaces-minimal-test] for an example of this behaviour.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)