Re: clean way to avoid DynamicWebResource to look for non existing file

2009-09-03 Thread Pedro Santos
Hi Daniele, just an idea: @Override protected byte[] getImageData() { String basePath = "upload/images/"; Object name = logoModel.getObject(); File file = new File(".", basePath + name); LoggerFactory.getLogger(getClass()).info("serving file: " + file);

clean way to avoid DynamicWebResource to look for non existing file

2009-09-02 Thread Daniele Dellafiore
Hi all, I use a DynamicWebResource to display images previously uploaded by user ion the context of my application. I have this DWR subclass: class LogoResource extends DynamicImageResource { private final IModel logoModel; public LogoResource(IModel model) { this.logoMod