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

        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.

          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