Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3315

PackagedTextTemplate should set lastModifiedTime

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.15
    • 1.4.16, 1.5-RC1
    • wicket
    • None

    Description

      Hi,

      When using TextTemplateResourceReference in a setAddLastModifiedTimeToResourceReferenceUrl(true) configuration, the w:lm parameter isn't added to the URL of the resource as PackagedTextTemplate.lastModifiedTime() (called in TextTemplateResourceReference.lastModifiedTime()) always returns null.

      IMHO, PackagedTextTemplate should set lastModifiedTime when accessing the resource.

      AFAICS, the cache code at the top of PackagedTextTemplate isn't used at all so I think we can simply set it in the constructor when we access the stream. This is what the attached patch does.

      Any comment?


      Guillaume

      Attachments

        1. WICKET-3315.patch
          0.5 kB
          Guillaume Smet

        Activity

          People

            pete Peter Ertl
            gsmet Guillaume Smet
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: