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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.5
    • Fix Version/s: 5.2.1
    • Component/s: tapestry-core
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: