Skip to content

Complex Forms

Miguel Pérez Colom edited this page Oct 11, 2024 · 3 revisions

At some point you will face complex forms that contain many fields, groups of fields which appear several times or which you want to reuse in several forms.

With Mateu, as you are using plan java for defining your UI, you can easily extend existing component classes (e.g. forms or cruds) and override whatever you want for building your UI. Nevertheless sometimes you want to use composition instead.

When building your forms any field with a non supported type will be treated as an embeddable form. This means that the embedded class fields will be managed as the container fields and the embedded class methods (annotated with @Action) will be included as form actions.

Clone this wiki locally