Announcement Announcement Module
Collapse
No announcement yet.
Inheriting from Multiple Parent Flows - Which parent has precedence? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment

    Working...
    X