Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2470

RuntimeException when t:add property to a grid and fetching the model before grids setup render

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.4
    • Component/s: tapestry-core
    • Labels:

      Description

      If we have a grid with a t:add property and a mixin that on SetupRender gets the sortModel and applies sorting, then on the grids SetupRender we get a RuntimeException "Bean editor model for %s already contains a property model for property '%s'.".

      This happens because on grid line 510 we set the previous dataModel to null and recreate it.When the model is about to be created again we try to add the extra properties again with BeanModelUtils.modify resulting to the exception mentioned above

      http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/Grid-and-initial-sort-mixin-Tapestry-5-4-beta28-td5730293.html

      http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/Tapestry-5-4-beta28-grid-model-td5730340.html

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                zenios Dimitris Zenios
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: