lundi 20 septembre 2021

How would you do a class agnostic list view for your website?

Working on an OOP (object oriented programming) language like Java I would like to implement a way to list any object from my model on a view (a web, built on some view engine like thymeleaf or simmilar.

To list 1 single clase I only need to instantiate an ArrayList<MyClass> bind to the view and show the data in a specific designed table (equal number of columns than properties, for-each item in list a proper row in the table)

Would it be possible to implement a: 1 column For-each property in the class structure?




Aucun commentaire:

Enregistrer un commentaire