The JSON grid twice inside this Wicket page: once rendered by React, once by Svelte. They are islands (Wicket Islands, apache/wicket#1834, proposed for Wicket 12): the browser renders them, Wicket answers their calls, and both sides change the same thousand users.
- Rows by a page-less call. A table asks for its rows with
call('rows', { first, count, sort, filter }). It goes to an endpoint of the application, not to the page: it runs outside the lock of the page, so both tables page, sort and filter while the page is busy. What it answers are records made for the browser. - Actions by calls of the page. New user, Edit and Delete are forms of the framework, and saving or deleting is an Ajax request of the page, which updates Wicket's panel below in the same response. Nothing is checked in the browser: leave a field empty and Wicket rejects the promise with its messages, in your language, which the form shows.
- A call opens a dialog of Wicket. Edit in Wicket, in the form of an island, calls
call('edit', { key }): the page opens its own form in its own modal. - Wicket tells the islands what is stale. Save in Wicket's form, or in either island: the server marks the users as stale,
IslandTargets.invalidate(target, "users"), and both tables load the rows they show again, on their page, sorted, filtered and scrolled as they are. - The selection goes to Wicket. Select rows: the island calls
select, and a Wicket panel names the users and shows the one selected last. - Living through a re-render. Page, sort, filter, select, move or widen columns, then Re-render the container: Wicket replaces the markup around the tables, and the runtime moves the living tables into their new hosts. Replace the islands puts new components in their place: the tables start over.
You change a copy of the users of your own, which nobody else sees.