Tapestry
  1. Tapestry
  2. TAPESTRY-1382

Strip out duplication of names in the class name -> page name / component type conversion

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0.4
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      When Tapestry converts a class name into a page name, component type or mixin name, it could be a little smarter: when the package name is either the prefix or the suffix of the simple class name, it should be stripped off.

      Example: org.example.myapp.pages.book.EditBook --> book/edit (not book/editbook). Likewise, org.example.myapp.pages.book.BookIndex --> book/index.

      This does open up a little possibility for name collisions (what if class Index and class BookIndex are in the book package?).

      The alternative is to have many different classes with the same simple name (List, Edit, Index, etc.) in different packages, which is much harder to maintain.

        Activity

        There are no comments yet on this issue.

          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