Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2508

Page activation method not always called since t54-beta33

    XMLWordPrintableJSON

Details

    Description

      Hi,

      I decided to try upgrading an app from t54-beta-26 to the latest public beta. Most things seem to work, but I noticed changed behavior with onActivate methods in some of our classes.

      We have a base page with the following:

      @OnEvent( ACTIVATE )
      void activate( EventContext ec)

      and an extending page with:

      @OnEvent( ACTIVATE )
      Object activate( EventContext ec )

      In beta-26 (and before) the methods are called in the following order:
      1) Base activate
      2) Extending page activate

      In beta-33 and newer only the Base activate is called.

      I'm attaching a sample project where one can play with the versions and see the differences in the console when requesting the index page.

      Also when creating the sample project i noticed that PageLink (to login in Layout.tml) fails if Login page is missing in beta-33 while it has no problem with pointing to a deleted page in beta-36.

      Attachments

        1. t54-activate.zip
          21 kB
          Chris Poulsen
        2. 0001-TAP5-2508-methods-with-default-visibility-cannot-be-.patch
          17 kB
          Jochen Kemnade

        Issue Links

          Activity

            People

              jkemnade Jochen Kemnade
              chrispoulsen Chris Poulsen
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: