[ 
https://issues.apache.org/jira/browse/WICKET-3987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13090333#comment-13090333
 ] 

Peter Ertl commented on WICKET-3987:
------------------------------------

PackageResourceReference#getLastModified() was introduced when adding improved 
caching support for package resources. Recently there was a refactor 
(https://issues.apache.org/jira/browse/WICKET-3948) to remove some limitations 
of this approach. PackageResourceReference#getLastModified() became obsolete 
and was therefore removed.

If you really need lastModified() from within PackageResourceReference you can 
use this (though it's a little inconvenient):


  PackageResourceReference reference = /* ... */;
  PackageResource resource = (PackageResource)reference.getResource();
  Time lastModified = resource.getResourceStream().lastModifiedTime();

If we get another release candidate for 1.5 I will remove the need for the 
type-cast.

IResourceSettings#setUseTimestampOnResources() has been replace by a more 
powerful solution. check

https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-getResourceSettings%2528%2529.setAddLastModifiedTimeToResourceReferenceUrl%2528%2529hasbeenreplacedbyIResourceCachingStrategy

to get all the details.


> setUseTimestampOnResources and PackageResourceReference#getLastModified 
> removed
> -------------------------------------------------------------------------------
>
>                 Key: WICKET-3987
>                 URL: https://issues.apache.org/jira/browse/WICKET-3987
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.0
>         Environment: 1.5.0 trunk
>            Reporter: Konstantin Ignatyev
>
> IResourceSettings#setUseTimestampOnResources and 
> PackageResourceReference#getLastModified removed in the trunk breaking some 
> of my components which rendered JScript reference from a component package. 
> Now URL has timestamp and therefore parts of JScript relying on relative to 
> the script positions of assets stopped working.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to