https://github.com/balsaroripublic class ImageTest { @Inject private ComponentResources _resources; public Link getChart3() { return _resources.createEventLink("chart", false, null); } public StreamResponse onChart(){ return new StreamResponse() { public String getContentType(){ return "image/png"; } public InputStream getStream() throws IOException { try { return new ClasspathResource("diagrams/vacation.png").openStream(); } catch (IOException ex) { throw new RuntimeException("Cannot read image file.", ex); } } public void prepareResponse(Response response){} }; }}ImageTest.tml文件image display ![]()