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

Tapestry may, in some cases, look for a page class in the wrong package

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 4.0
    • 4.0
    • Framework
    • None

    Description

      I've been trying to come up with a patch but work has been getting crazy and I have been ill for days now.

      A detailed description of the problem (and apossible solution) is to be found here:

      http://wiki.apache.org/jakarta-tapestry/GeoffLongmanSandbox

      In a nutshell, if a user references a Tapestry page whose class must be found from a given list of packages it may be the case that way they have referenced (by name) may mislead the ComponentClassProvider to look in the wrong package. If that happens, the class is not found and (in most cases) BasePage is assigned as the page class. Often this will break the application if the page depends on a class other than BasePage. Depending on how the app is set up there could be 3 or more legal ways to reference a page by name (path parts) but only one way will result in the right page class being located.

      Attachments

        1. test.zip
          10 kB
          Geoff Longman

        Activity

          People

            hlship Howard Lewis Ship
            glongman Geoff Longman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: