You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Ernesto Reinaldo Barreiro (Jira)" <ji...@apache.org> on 2025/04/15 14:37:00 UTC

[jira] [Resolved] (WICKET-7153) [Resources] modify RootMapper in order to allow to define a refferent ResourceReferenceMapper

     [ https://issues.apache.org/jira/browse/WICKET-7153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ernesto Reinaldo Barreiro resolved WICKET-7153.
-----------------------------------------------
    Resolution: Fixed

* Now SystemMapper allows to override the creation of a ResourceReferenceMapper
 * We added HashBasedResourceReferenceMapper that encodes class names by their Hascode hiding package structure from URLs.
 * HashBasedResourceReferenceMapper allows to use normal Java hash or any other hash method.
 * Class can be passed a parameter that will produce exceptions when two different classes generate the same hash (e.g. in development mode). 

> [Resources] modify RootMapper in order to allow to define a refferent ResourceReferenceMapper
> ---------------------------------------------------------------------------------------------
>
>                 Key: WICKET-7153
>                 URL: https://issues.apache.org/jira/browse/WICKET-7153
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 10.4.0, 9.20.0
>            Reporter: Ernesto Reinaldo Barreiro
>            Assignee: Ernesto Reinaldo Barreiro
>            Priority: Major
>             Fix For: 10.5.0, 9.21.0
>
>
> In our application we would like to hide as much as possible the fact that we are using wicket. We are using a lot of third party libraries and if you inspect headers headers you will see things like, e.g.:
> "./wicket/resource/org.xxx.yyy.APanel/a.js"
>  
> we want to replace this with
>  
> "appres/resource/\{some_stable_number_depending_on_package_class}/a.js"
>  
> The way I found to solve this requires copy/pasting/modifying SystemMapper. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)