Tapestry
  1. Tapestry
  2. TAPESTRY-2636

NoSuchElementException on submit when using a Grid with a non-default model inside a Form

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 5.0.14
    • Fix Version/s: 5.0.15
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      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.

        Activity

        Howard M. Lewis Ship created issue -
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Howard M. Lewis Ship made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Workflow jira [ 12441292 ] Default workflow, editable Closed status [ 12568777 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568777 ] jira [ 12590120 ]

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development