Search in sources :

Example 1 with NestedStringResourceLoader

use of org.apache.wicket.resource.loader.NestedStringResourceLoader in project webanno by webanno.

the class WicketApplicationBase method initNestedStringResourceLoader.

protected void initNestedStringResourceLoader() {
    List<IStringResourceLoader> loaders = new ArrayList<>(getResourceSettings().getStringResourceLoaders());
    NestedStringResourceLoader nestedLoader = new NestedStringResourceLoader(loaders, Pattern.compile("#\\(([^ ]*?)\\)"));
    getResourceSettings().getStringResourceLoaders().clear();
    getResourceSettings().getStringResourceLoaders().add(nestedLoader);
}
Also used : NestedStringResourceLoader(org.apache.wicket.resource.loader.NestedStringResourceLoader) IStringResourceLoader(org.apache.wicket.resource.loader.IStringResourceLoader) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 IStringResourceLoader (org.apache.wicket.resource.loader.IStringResourceLoader)1 NestedStringResourceLoader (org.apache.wicket.resource.loader.NestedStringResourceLoader)1