Announcement Announcement Module
No announcement yet.
Form: TabbedPane Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Form: TabbedPane

    Is it possible to create a form where one property of the form (a list) is rendered within a tabbed pane where each of the elements in the list is presented within a form inside a tabbed pane?

  • #2
    I think you need to do something like this:

    // SomeObject has a list of other objects
    SomeObject object = ...;
    DefaultFormModel formModel = new DefaultFormModel(object);
    TabbedDialogPage tabbedDialogPage = new TabbedDialogPage();
    for (SubObject subObject: object.getSubObjects()) {
        DefaultFormModel subFormModel = new DefaultFormModel(subObject);
        // create the correct Form for each type of SubObject
        Form subForm = ...;
    hope this helps,



    • #3
      Thanks for your post. This helps very much! Thanks a lot.

      I have now one additional question:

      I have a parent with n children (held in a list). Each child is shown within its own tab (your code will do that for me).
      But now the user shall be able to create additional children (and add them to the list). Of course I want to use buffered value models so that the changes are only written to my business models when the forms are committed.

      I think I should use some sort of "ListValueModel"? And I have to automatically add additional tabs when the user creates a new child (or delete a tab).

      Besides I the parent returns an unmodifiable list. There exist add... and remove... methods. Can that be used in conjunction with ValueModels? I think I have to implement my own PropertyAccessStrategy - could this be the way?