Hi all, Some time ago, I opened a pull request for a completely new experimental module: wicket-islands. It combines the server-side Wicket with client-side JavaScript frameworks. At the moment, it supports React, but it should not be too hard to add support for other frameworks like Angular and Vue. Currently it features the following: * An island is a normal component. * An Island can be updated via Ajax without losing its state. * Stateful calls into the page to trigger actions and to retrieve data. * Stateless calls to retrieve data on endpoints like an IResource. * Form islands that are real FormComponents and participate in normal form submits. * Shared client state between islands. * Frontend developer friendly stack with Vite supporting hot module replacement. * Prebuilt libraries where the JavaScript is packaged into the jar. * Secure by default. It fully supports a strict CSP including Trusted Types. Wicket acts as a backend-for-frontend, so the browser never holds backend tokens.
I would like to integrate this library into Wicket to give it maximum exposure. IMHO this is one of areas where Wicket is really lacking. There are many different libraries building similar integrations, all in different ways. Providing one good way, supported by us, should streamline this. It does add quite a bit of code to Wicket and we need to think about releasing npm modules, but I think it's worth it. WDYT? https://github.com/apache/wicket/pull/1834 Best regards, Emond
