Re: ResourceFinders - order of looking into folders for resource

2016-02-11 Thread Bas Gooren
Hi Marieke, I see that ResourceSettings exposes method getResourceFinders() which returns a List. Assuming that’s where you register your custom finder, isn’t the easy solution to simply add it to the top of the list? E.g. add(0, yourFinder) instead of add(yourFinder)? Met vriendelijke

ResourceFinders - order of looking into folders for resource

2016-02-11 Thread Marieke Vandamme
​Hi, ​We work with an extra ResourceFinder a lot, so that we can modify html when webapplication is already running. Now I want to change the html from a library, but the html is still in the library. I can not remove it from there.. Is there some way I can override this existing html, without

Re: ResourceFinders - order of looking into folders for resource

2016-02-11 Thread Ernesto Reinaldo Barreiro
Hi, Or simply create a finder that: 1- Do your default logic 2- Contains the finders on getResourceFinders() 3- You use setResourceFinders to set this unique resource finder (that simply delegates n standard finder if your custom logic fails) On Thu, Feb 11, 2016 at 12:17 PM, Bas Gooren

Re: ResourceFinders - order of looking into folders for resource

2016-02-11 Thread Ernesto Reinaldo Barreiro
I.e. package temp; import org.apache.wicket.util.file.IResourceFinder; import org.apache.wicket.util.resource.IResourceStream; import java.util.List; /** * CustomDelegatingResourceFinder */ public class CustomDelegatingResourceFinder implements IResourceFinder { private final