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

Overload method ComponentSource.getPage to accept a page class as parameter

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.11
    • Fix Version/s: 5.0.15
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      The method ComponentSource.getPage(String logicalPagename) is used to get a page. It would be nice if there was a Method ComponentSource.getPage(Class pageClass). Using a class object instead of a String would make refactoring a bit easier. When I change a class name my IDE changes it everywhere automatically in the code whereas I would have to change a logical page name by hand. As it is possible to return page classes as well as logical page names from event handler methods, I was thinking it might be possible in this method as too.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: