Server Side Events Extension

The SSE (Server Side Events) module integrates with the Wicket Viewer, and provides the ability to dynamically update properties of type Markdown and Asciidoc. One use case could be to render a progress bar for a long-running action.

Usage

TODO: v2 - to write up…​

need to annotate property using @ServerSentEvents annotation, and provide an implementation of the SseSource SPI.

Configuration

Add the following dependency:

pom.xml
<dependency>
    <groupId>org.apache.causeway.extensions</groupId>
    <artifactId>causeway-extensions-sse-wicket</artifactId>
</dependency>

Also add the following module to your AppManifest:

AppManifest.java
@Configuration
@Import({
        CausewayModuleExtSseWicket.class,  (1)
        ...
})
public class AppManifest {
}