Results 1 to 2 of 2

Thread: Inheriting from Multiple Parent Flows - Which parent has precedence?

  1. #1
    Join Date
    Apr 2007
    Posts
    20

    Default Inheriting from Multiple Parent Flows - Which parent has precedence?

    In the Spring Web Flow 2 documentation in section "8.2. Is flow inheritance like Java inheritance?" it states that a child flow can inherit from multiple parent flows. If that is the case, which parent gets precedence if the inherited parent flows collide on some part of configuration?

  2. #2
    Join Date
    Apr 2007
    Posts
    20

    Default Figured it out

    I think this has the answer:
    ---
    8.3.1. Flow level inheritance

    Flow level inheritance is defined by the parent attribute on the flow element. The attribute contains a comma separated list of flow identifiers to inherit from. The child flow will inherit from each parent in the order it is listed adding elements and content to the resulting flow. The resulting flow from the first merge will be considered the child in the second merge, and so on.
    ---

    So basically the precedence of the parents is the order listed - first one in the list is the one that has precedence.

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
  •