Tapestry
  1. Tapestry
  2. TAPESTRY-2216

Add a @Property annotation for fields to create a getter and setter method

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.10
    • Fix Version/s: 5.0.11
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Getter/Setter generation should occur early.

      It must be done in such a way that the methods to not appear as "added", because the field references may later be intercepted due to injections or other annotations.

        Issue Links

          Activity

          Hide
          Julien HENRY added a comment -

          The documentation needs some update:

          http://tapestry.apache.org/tapestry5/tutorial1/forms.html

          You need to replace @GenerateAcessors by @Property

          Show
          Julien HENRY added a comment - The documentation needs some update: http://tapestry.apache.org/tapestry5/tutorial1/forms.html You need to replace @GenerateAcessors by @Property
          Hide
          Davor Hrg added a comment -

          a small patch is there already

          Show
          Davor Hrg added a comment - a small patch is there already
          Hide
          Howard M. Lewis Ship added a comment -

          This is not test friendly, and the compiler will give you warnings about unused variables quite often, but it is very, very handy.

          Show
          Howard M. Lewis Ship added a comment - This is not test friendly, and the compiler will give you warnings about unused variables quite often, but it is very, very handy.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development