Hi, I am not sure how much helpful my answer is to you but https://isis.apache.org/ does something similar. Isis defines a model based on your naked objects. And then different viewers visualize the objectis/collections. Apache Wicket is one of the available viewers. REST is another. AFAIK there is no POI viewer but there is a plugin for the Wicket viewer that adds "export to Excel" button next to the tables.
On Thu, Nov 17, 2022 at 11:48 AM Martin Terra < [email protected]> wrote: > Hi! > > Is there a library/example/experience for doing MVVM with wicket (or > something close enough to serve as a useful reference)? > > A practical goal would be to decouple the Wicket stack from other layers > and automate gui code generation based on predefined patterns & layout > design (benefits would be stabilty, testability, predictability, standard > practices, maintainability, upgradeability, code generation/ai code > copilot, etc.). > > Preferably it would work even so far that we could plug/attach either > jakarta poi or wicket to the same model and get as output (for example) > either a html table or excel sheet. > > How it works is, basically you would have a wicket plugin that > "interprets/implements" the model. Alternatively you could have a jakarta > poi plugin as well. > > You could also have a mix of the two, for example: an instruction in the > model for an action (link, button, etc. rendered by the wicket plugin) has > an "embedded instruction" to further render an excel sheet via (a different > plugin) jakarta poi as a result of the wicket action (so that when the user > clicks the link, the user can download the sheet generated by the model via > a wicket download stream associated with the defined link/action). > > > ** > Martin >
