Tapestry 5
  1. Tapestry 5
  2. TAP5-603

BeanEditForm ordering behaviour inconsistent with documentation

    Details

      Description

      The BeanEditForm documentation at the URLs below states that property orders are dependent on the order of the getter methods in the bean object.
      http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/corelib/components/BeanEditForm.html
      http://tapestry.apache.org/tapestry5/tutorial1/forms.html

      However in practice the default property order is alphabetical, and not based on the order of the getters.
      It looks as if the property names are being sorted when they are returned from the property adapters map (see: org.apache.tapestry5.ioc.internal.services.ClassPropertyAdapterImpl#getPropertyNames())

      The documentation should be brought in line with the current reality (or the code modified) to prevent confusion.

        Activity

        Hide
        Howard M. Lewis Ship added a comment -

        Reverted to the old behavior, then got the desired change by adding any added property names when handling the include list (that is, the add list is implicitly appended to the include list).

        Show
        Howard M. Lewis Ship added a comment - Reverted to the old behavior, then got the desired change by adding any added property names when handling the include list (that is, the add list is implicitly appended to the include list).

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development