Tapestry 5
  1. Tapestry 5
  2. TAP5-489

The comment inside AssetBinding concerning invariant is out of date, in that all Assets now use complete URLs

    Details

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

      Description

      A recent change ensures that Assets always use a complete URL, not a relative URL. This means that Assets are, once again, invariant. Therefore, we should (in most cases) allow Assets to be invariant again.

      However, for the tapestry-templating (an external project) it is necessary that Assets be invariant, because an Assets path will vary from request to request, based on the location. So, we should have a configuration symbol to control whether Assets are invariant or not.

        Activity

        Hide
        Howard M. Lewis Ship added a comment -

        Added the new isInvariant() method to Asset to address this properly.

        Show
        Howard M. Lewis Ship added a comment - Added the new isInvariant() method to Asset to address this properly.

          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