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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.4
    • 5.4
    • tapestry-core

    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

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

              Dates

                Created:
                Updated:
                Resolved: