JAVA Apache Wicket RecursiveDataSource

A recursive data source is defined like a normal data source. The only difference with it is that some widgets, like the TreeView read it recursively for each level of child items, passing information about the parent item.

    RecursiveDataSource recursiveDS = new RecursiveDataSource();
    add(recursiveDS);

    recursiveDS.getOptions()
        .setRemote(new DataSourceOptions.Remote().setRead("/api/get-data"));