Tapestry
  1. Tapestry
  2. TAPESTRY-1526

Strip the folder name used to identify libraries from logical page names, just as the subfolder is stripped

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.5
    • Fix Version/s: 5.0.8
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      For a library mapping it would be really nice to have shorter logical page names.

      The library mapping is e.g. the following:

      public static void contributeComponentClassResolver( Configuration<LibraryMapping> configuration )

      { configuration.add( new LibraryMapping( "user", "org.comp.app.user.presentation" ) ); }

      For the page class org.comp.app.user.presentation.pages.CreateUser it would be nice to get
      the url /app/user/create instead of /app/user/createuser.

        Activity

        Hide
        Howard M. Lewis Ship added a comment -

        Good thought; currently on the package name is taken into account when stripping redundant prefixes and suffixes from the class name, but we should be able to "seed" in the library mapping virtual folder ('user", in this example) as well.

        Show
        Howard M. Lewis Ship added a comment - Good thought; currently on the package name is taken into account when stripping redundant prefixes and suffixes from the class name, but we should be able to "seed" in the library mapping virtual folder ('user", in this example) as well.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development