Httpimagereference Has No Peer

Hi.

HttpImageReference has no Peer, so it can't be used from a stylesheet.

Another problem would be, that if you don't hardcode the application name in the stylesheet the image will be generated without it in the DOM.

So I made a change in the ImageTools class:

} else if (imageReference instanceof HttpImageReference) {
return WebRenderServlet.getActiveConnection().getRequest().getContextPath() +
((HttpImageReference) imageReference).getUri();

Tudor

[url=http://forum.nextapp.com/forum]http://forum.nextapp.com/forum]

please, search the forum