Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6458

Websocket replacing a panel which uses websockets

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.8.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Ubuntu 16.04
      Tomcat 8.5.20

      Description

      I've a page which initially shows a loading panel.
      This panel uses web sockets to trigger background loading when the connected message is received.

      When the background loading has completed
      (onEvent => event.getPayload => WebSocketPushPayload => ???)
      I replace the loading place holder panel with the real data panel.

      The real data panel may also want to use web sockets, and show a loading animation.
      (Turtles all the way down)

      The problem I'm seeing, is that the WebSocketBehavior::onConnected method is not being called on the replaced panel.

      A scala sample which shows this problem.

      https://github.com/bollinger/WebSocketPanelReplace

        Attachments

        1. wicket-websocket-replace.tar.gz
          31 kB
          Peter Henderson

          Activity

            People

            • Assignee:
              mgrigorov Martin Grigorov
              Reporter:
              phenderson Peter Henderson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: