Tapestry
  1. Tapestry
  2. TAPESTRY-2229

BeanEditForm is including properties that are read only, causing errors when the form is submitted

    Details

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

      Description

      I have a domain object that looks something like this:

      private int points;
      private int possiblePoints;

      float getScore() {
      return point/possiblePoints * 100;
      }

      [other getters and setters]

      In 5.0.10 score didn't show up in the BeanEditForm because it wasn't something that you could change. In 5.0.11-SNAPSHOT it is showing up in the beaneditform, but when you submit the form it complains that you can't change it.

      It is easy to work around. You just add it to the remove attribute, but Howard said it was a bug so I'm listing it here.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        14h 29m 1 Howard M. Lewis Ship 04/Mar/08 19:10
        In Progress In Progress Closed Closed
        7m 53s 1 Howard M. Lewis Ship 04/Mar/08 19:18
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568615 ] jira [ 12591650 ]
        Mark Thomas made changes -
        Workflow jira [ 12425015 ] Default workflow, editable Closed status [ 12568615 ]
        Howard M. Lewis Ship made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 5.0.11 [ 12312968 ]
        Howard M. Lewis Ship made changes -
        Component/s tapestry-core [ 12311285 ]
        Component/s Core Components [ 12311677 ]
        Howard M. Lewis Ship made changes -
        Summary BeanEdit form is including properties that are read only, causing errors when the form is submitted BeanEditForm is including properties that are read only, causing errors when the form is submitted
        Hide
        Howard M. Lewis Ship added a comment -

        Interestingly, BeanEditor was doing it correctly. I updated the BeanModelSource docs to make it easier to choose true or false for the parameter.

        Show
        Howard M. Lewis Ship added a comment - Interestingly, BeanEditor was doing it correctly. I updated the BeanModelSource docs to make it easier to choose true or false for the parameter.
        Howard M. Lewis Ship made changes -
        Summary read only fields showing up in bean edit BeanEdit form is including properties that are read only, causing errors when the form is submitted
        Priority Major [ 3 ] Critical [ 2 ]
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Assignee Howard M. Lewis Ship [ hlship ]
        Mark Shead created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development