Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-633

Allow page classes to have a "Page" suffix that is not included in the URL

    XMLWordPrintableJSON

Details

    Description

      I have an application with a lot of read-only pages. For example, I have a page that shows a company and I would like a URI such as: /company/1234

      However, if I name the page class "Company" then I get a naming clash with the domain object "Company". What I would like to do is call the Tapestry 5 class "CompanyPage" - after all, that is what the class represents and it's certainly how the team refers to that thing internally and with our business (i.e. "Have you seen the new company page?").

      So, please could the ComponentClassResolverImpl remove the suffix "Page" (if it exists) from the class name when it constructs the logical page name?

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            paulfield Paul Field
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: