Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4303

f:websocket does not call p:ajax listeners

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3-next-M1, 2.3.5
    • General
    • None
    • myfaces2.3.4, tomcat 9.0.16

    Description

      We have following websocket definition:

       

      {{ <f:websocket channel="dispatcherChannel" user="#{userBean.getUserId()}" scope="application" >}}
          <p:ajax event="broadcastMsgPushOpenEvent"
                  listener="#{broadcastMessageBean.onNewBroadcastMsg()}"
                  update="pnlBroadcastMsg"
                  ignoreAutoUpdate="true"
                  global="false"/>
          <p:ajax event="broadcastMsgPushCloseEvent"
                  listener="#{broadcastMessageBean.onCloseDialogFromPush()}"
                  update="pnlBroadcastMsg"
                  ignoreAutoUpdate="true"
                  global="false"/>
      {{ </f:websocket>}}{{}}

       

      client browser receives websocket pushes, but does not execute listener's actions on server side, otherwise update is executed. We are using forwarding from ajax's onstart=".." to <p:remoteCommand> as a workaround now. In the past we had been using o:socket with p:ajax without problems.

      Attachments

        Activity

          People

            tandraschko Thomas Andraschko
            lada.dvorak Vladimir.dvorak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: