Tapestry
  1. Tapestry
  2. TAPESTRY-2528

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development