Tapestry 5
  1. Tapestry 5
  2. TAP5-1613

Mixin inherited from parent model does not inherit order

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.3, 5.2.5
    • Fix Version/s: 5.3
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      As reported on the user list: http://tapestry.1045711.n5.nabble.com/Confused-by-mixins-render-order-Bug-td4708340.html

      When a mixin is added to a parent component the mixin is inherited by the child component, but the ordering of the mixin is not.

        Activity

        Hide
        Hudson added a comment -

        Integrated in tapestry-trunk-freestyle #493 (See https://builds.apache.org/job/tapestry-trunk-freestyle/493/)
        TAP5-1613 - Mixin inherited from parent model does not inherit order
        MutableComponentModelImpl returned parent mixins, but did not return the ordering for them.

        joshcanfield : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1160105
        Files :

        • /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/model/MutableComponentModelImpl.java
        • /tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/internal/model/MutableComponentModelImplTest.java
        Show
        Hudson added a comment - Integrated in tapestry-trunk-freestyle #493 (See https://builds.apache.org/job/tapestry-trunk-freestyle/493/ ) TAP5-1613 - Mixin inherited from parent model does not inherit order MutableComponentModelImpl returned parent mixins, but did not return the ordering for them. joshcanfield : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1160105 Files : /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/model/MutableComponentModelImpl.java /tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/internal/model/MutableComponentModelImplTest.java
        Hide
        Josh Canfield added a comment -

        First check the model to see if it defines ordering and return that if defined.
        If there is no order locally and there is a parent model, request ordering constraints from the parent.

        Show
        Josh Canfield added a comment - First check the model to see if it defines ordering and return that if defined. If there is no order locally and there is a parent model, request ordering constraints from the parent.

          People

          • Assignee:
            Josh Canfield
            Reporter:
            Josh Canfield
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development