Hi,

Seems like in wicket 1.3.x, if you include a CSS using HeaderContributor and
if CSS has background-image style with paths like ../img/whatever.gif,
SharedResourceRequestTarget throws exception instead of resource getting
loaded through the custom resource stream locator registered in the
application.

resolver below tried to find a class by the name of img from
../img/whatever.gif which of course will fail with classnotfoundexception.

The block of code that causes the exception is

SharedResourceRequestTarget.java

line:143
// First try to match mounted 
scope = Application.get().getSharedResources().getAliasClass(className);

// If that fails, resolve it as a fully qualified class
// name.
if (scope == null)
{
      scope = resolver.resolveClass(className);
}


-- 
View this message in context: 
http://www.nabble.com/SharedResourceRequestTarget---Custom-ResourceStreamLocator-bug--tp19280975p19280975.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to