Results 1 to 2 of 2

Thread: Entity create form - selecting it's "parents" many-to-one related entities

  1. #1
    Join Date
    Feb 2013
    Posts
    1

    Default Entity create form - selecting it's "parents" many-to-one related entities

    Hi all.

    I'm building an app in wich I have a chain of many-to-one related entities, each one representing a group of the next, down to the "bottom" (not group) one. For every entity in this chain, the app offers CRUD functionality. My problem is: when creating an entity, in it's creation form the user must be able to select the groups it will belong to up to the top one.

    A good analogy would be the Country-State-City-Street relationship. When creating a street, I cannot be limited to choose from it's direct group, city, because the city I'm choosing may be in the wrong country. So I must be able to first select the country, then the state (from that country), and then the city (from that state).

    In fact, the same applies to the city creation form, because I must be able to select the state and country it will belong to.

    So we could say that: for every entity, it's creation form must allow the user to select the entire chain of groups it will belong to.

    How do I do that in a Spring Roo app?

    I'm considering using the web flow, being each state one "group selection" phase. In State1, the user selects the country, and that selection moves the flow to State2, and so on, all flow states using the same view. But I have no idea how to do that, and whether that is the best option for solving my problem.

    Any help would be much appreciated.

    Thanks.

  2. #2
    Join Date
    Jan 2010
    Location
    Mislata - Valencia - Spain
    Posts
    163

    Default

    You have the gvNIX Screen Patterns add-on:

    https://code.google.com/p/gvnix/wiki/DocPattern

    Regards !
    Mario Martínez Sánchez
    Project Manager & Software Architect
    --------------------------
    Disid Technologies S.L.
    http://www.disid.com
    --------------------------
    gvNIX
    http://gvnix.googlecode.com
    http://www.gvnix.org

Tags for this Thread

Posting Permissions

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