Project

General

Profile

Bug #8893

Updated by Roel Standaert 4 months ago

We added Dbo-based forms to Wt: https://redmine.webtoolkit.eu/issues/8622 

 We would like to have something similar for JWt. 

 However, the implementation for Wt is very template-based, so this is not something we can automatically translate. Also, we based Wt's implementation on Dbo because the `persist` function serves as a sort of visitor for every member of the class. We don't need to do that with JWt (and JWt Dbo does not use the persist function), since Java has reflection capabilities. 

 We could just create something like an `AutoFormModel` and `AutoFormView`, that just uses reflection? We can keep the form delegate system more or less the same. 

 We should also add an example like the `dbo-form` example.

Back