Results 1 to 2 of 2

Thread: Using AbstractForm to add/edit a child in parent-child

  1. #1

    Default Using AbstractForm to add/edit a child in parent-child

    Hi
    I have used the AbstractFormController to add/edit/validate a widget sucessfully. I am now trying to create a Controller and JSP for adding/editing a childwidget. A widget can contain many childwidgets.

    I am trying to decide whether my formbacking object should be a childwidget or a widget. Certain fields are only applicable for a childwidget based on the widget type it is part of, also when adding a new subwidget I have to make sure that a subwidget does not already exist with the same name. So with this in mind I thought I would make my widget the formbacking object. But when I display the JSP I cant work out how to bind to the correct subwidget, my subwidget may be one of many within the widget how do I indicate to the form which subwidget to display ?

    Or should I make by subWidget the form backing object, in which case how do reference the widget. I dont think it should be put in reference data as it is much more than that.

  2. #2

    Default

    A thrird alternative occurred to me that maybe my backing object should represent a form rather than a data entitity, but this seems counter intuitive to me.

    Anybody got any views on this?

Similar Threads

  1. Saving Parent / Child Object Graph
    By matthewramella in forum Data
    Replies: 3
    Last Post: Nov 28th, 2007, 08:33 AM
  2. Replies: 1
    Last Post: Aug 18th, 2006, 11:04 PM
  3. Hibernate Long Session Per Flow?
    By akw in forum Web Flow
    Replies: 21
    Last Post: Dec 12th, 2005, 08:06 PM
  4. Replies: 3
    Last Post: Jul 27th, 2005, 10:41 AM
  5. Replies: 0
    Last Post: Jun 6th, 2005, 10:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •