views:

24

answers:

0

Is it possible to nest FormPages?

I tried this:

public class MyClass extends FormPage {
    @Override
    protected void createFormContent(final IManagedForm managedForm) {
        FormToolkit toolkit = managedForm.getToolkit();
        final ScrolledForm form = managedForm.getForm();
        // ...
        pointSection = toolkit.createSection(form.getBody(), Section.DESCRIPTION | Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
        // ...
        ManagedForm mForm = new ManagedForm(pointSection);
        // ... adding parts to mForm ....
    }
}

but the parts added to mForm are not visible. Should this nesting work (so my mistake is somewhere else) or is such a nesting not possible?

Thanks!