Wicket
  1. Wicket
  2. WICKET-4611

Provide native integration with web containers' websocket support

    Details

    • Type: Wish Wish
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.0-beta2
    • Fix Version/s: 6.0.0-beta3
    • Component/s: wicket
    • Labels:
      None

      Description

      I've played a bit with Jetty's WebSocket support and I've found out that it should be fairly easy to integrate it with Wicket.

      The ultimate goal was to create something like Ajax behavior that uses WebSocket as communication channel. The result is WebSocketBehavior which provides the ability to listen for text and binary messages sent by the client and WebSocketRequestHandler which can be used to push messages to the clients.

      The client side integration (the JavaScript part) extends wicket-ajax.js so it is possible to update Wicket components by pushing them as messages.

      The integration has been extended to support Tomcat 7.0.27+.
      There is also integration with Glassfish 3.1.x but there are some bugs in it and it doesn't work for now.

        Activity

        Hide
        Martin Grigorov added a comment -

        The documentation is coming.
        I'll explain all the pros and cons.
        That's the reason why I haven't sent a mail to the mailing lists with announcement.

        It's interesting that you ask for docs in the same day. Atmosphere integration is available for ~2 months now and it still has no docs.

        Show
        Martin Grigorov added a comment - The documentation is coming. I'll explain all the pros and cons. That's the reason why I haven't sent a mail to the mailing lists with announcement. It's interesting that you ask for docs in the same day. Atmosphere integration is available for ~2 months now and it still has no docs.
        Hide
        Martijn Dashorst added a comment -

        Can you explain why this module, and how it relates to wicket-atmosphere? It sounds a bit strange to have 2 ways to provide push support in Wicket. I know it is experimental, and welcome different strategies for functionality, but I'd like to know what your idea is about the future of this module and atmosphere.

        Show
        Martijn Dashorst added a comment - Can you explain why this module, and how it relates to wicket-atmosphere? It sounds a bit strange to have 2 ways to provide push support in Wicket. I know it is experimental, and welcome different strategies for functionality, but I'd like to know what your idea is about the future of this module and atmosphere.
        Hide
        Martin Grigorov added a comment -

        The code is added to the new Wicket experimental modules.

        A demo application can be taken from https://github.com/martin-g/wicket-native-websocket-example. It uses Scala and Akka and I cannot commit it in Apache Git repo.

        Show
        Martin Grigorov added a comment - The code is added to the new Wicket experimental modules. A demo application can be taken from https://github.com/martin-g/wicket-native-websocket-example . It uses Scala and Akka and I cannot commit it in Apache Git repo.

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Martin Grigorov
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development