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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.13
    • 5.0.14
    • tapestry-core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: