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

Control over creation of page render and component event requests should be encapsulated into an overridable service

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: 5.1.0.1
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      I would like to propose an extension of the Link interface with a setAbsoluteURI(String absoluteURI) method, or something alike. This will give more flexibility when handling the link in the LinkCreationListener.

      In my usecase, where I need the locale of the browser displayed as the first part of the URI (eg http://domain.com/en_US/myPage), I use a dispatcher to detect the locale (or change to it), and have to completely copy the LinkFactoryImpl into my own LocaleAwareLinkFactory (which gets contributed as an alias) to be able to set the URI to what I want on Link instantiation. If I can change the URI at a later stage I only need to add my own LinkCreationListener.

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              joostschouten Joost Schouten
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: