You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Dimitris Zenios (JIRA)" <ji...@apache.org> on 2015/04/09 19:20:12 UTC

[jira] [Updated] (TAP5-2470) RuntimeException when t:add property to a grid and fetching the model before grids setup render

     [ https://issues.apache.org/jira/browse/TAP5-2470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dimitris Zenios updated TAP5-2470:
----------------------------------
    Attachment: 0001-TAP5-2470-RuntimeException-when-t-add-property-to-a-.patch

Patch that resolves the issue along with a test case

> RuntimeException when t:add property to a grid and fetching the model before grids setup render
> -----------------------------------------------------------------------------------------------
>
>                 Key: TAP5-2470
>                 URL: https://issues.apache.org/jira/browse/TAP5-2470
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.4
>            Reporter: Dimitris Zenios
>            Priority: Minor
>              Labels: 54_release_prerequisite
>         Attachments: 0001-TAP5-2470-RuntimeException-when-t-add-property-to-a-.patch
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)