Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2528

It should not be possible for component classes to be directly instantiated

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.13
    • Fix Version/s: 5.0.14
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      A common beginner idiom is:

      Object onAction()

      { return new OtherPage(); }

      When they should inject OtherPage.

      Currently, this code works and produces odd effects.

      An explicit error message is needed.

        Attachments

          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: