Dec 11th, 2008, 10:18 AM
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?
Dec 11th, 2008, 10:23 AM
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