Project

General

Profile

Bug #8893

Port Dbo forms to JWt

Added by Roel Standaert 4 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
08/02/2021
Due date:
% Done:

0%

Estimated time:

Description

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.

Also available in: Atom PDF