You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/09/03 04:03:45 UTC

[jira] Closed: (TAPESTRY-2636) NoSuchElementException on submit when using a Grid with a non-default model inside a Form

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

Howard M. Lewis Ship closed TAPESTRY-2636.
------------------------------------------

    Resolution: Fixed

> NoSuchElementException on submit when using a Grid with a non-default model inside a Form
> -----------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2636
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2636
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.14
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>            Priority: Critical
>             Fix For: 5.0.15
>
>
> When you use the add, reorder, etc. parameters of Grid, it modifies the BeanModel uses when rendering.
> Inside a Form, on Submit, the model is again read and modified inside setupDataSource().
> However, subsequent requests for the model return the unmodified model (if the model parameter is not bound) due to the rules of how parameters behave when not rendering. Reading the parameter when not rendering ensures that the value is NOT cached, forcing a re-read of the binding, which means that the property modifications are not visible.
> Grid needs to have a secondary variable to store the modified model during rendering and on Form submit.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org