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

When using @PageActivationContext and providing a no-args activate event handler, the handler may be called too soon

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.1.0.5
    • 5.2.1
    • tapestry-core
    • None

    Description

      It appears that the onActivate() method is called before the @PageActivationContext logic, which means the following can fail:

      @PageActivationContext
      private MyEntity entity;

      void onActivate()
      {
      if (entity == null) throw new RuntimeException("Entity not found.");
      }

      The RuntimeException is thrown even when a valid Entity is in the page activation context.

      Attachments

        Issue Links

          Activity

            People

              hlship Howard Lewis Ship
              hlship Howard Lewis Ship
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: