Try that: put the image in img/pdficon_large.png at the root of your WAR, then use 'new Image(GWT.getHostPageBaseURL() + "img/pdficon_large.png")' (provided your HTML host page is also at the root of your war, alongside the "img" folder).See my reply on the issue tracker about why WEB-INF doesn't work.
--To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/dlkBDEGRX9wJ.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Try that: put the image in img/pdficon_large.png at the root of your WAR, then use 'new Image(GWT.getHostPageBaseURL() + "img/pdficon_large.png")' (provided your HTML host page is also at the root of your war, alongside the "img" folder).See my reply on the issue tracker about why WEB-INF doesn't work.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
Try that: put the image in img/pdficon_large.png at the root of your WAR, then use 'new Image(GWT.getHostPageBaseURL() + "img/pdficon_large.png")' (provided your HTML host page is also at the root of your war, alongside the "img" folder).See my reply on the issue tracker about why WEB-INF doesn't work.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/dlkBDEGRX9wJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Hi Tom,
Thanks for your reply. Where is the issue tracker? I would definitely like to see why WEB-INF doesn't work. But I am in the process of trying your suggestion now. Here is my directory structure:note I am using the <DIR> to let you know the name is a directory. If I don't use <dir> then assume its just a file:path: /opt/streamserve/tomcateomconsole/webapps
under "Webapps"------------------------------------<dir> EOMConsoleEOMConsole.warpath: /opt/streamserve/tomcateomconsole/webapps/EOMConsoleunder "EOMConsole"------------------------------------<dir> eomconsole (directory where the GWT subdirectory resides)<dir> META-INF<dir> WEB-INFEOMConsole.CSSEOMConsole.HTML
I have the images under the directory where the WAR resides but that didn't work before. Should I create the img directory in the same directory as the war? ( path: /opt/streamserve/tomcateomconsole/webapps ) or under the directory where the html file is? ( path: /opt/streamserve/tomcateomconsole/webapps/EOMConsole)thanks for your help, this is definitely tricky.
new Button("<img src='" + GWT.getHostPageBaseUrl() + "img/pdficon_large.png'>");
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/vBkHDauH6tsJ.
new Button("<img src='" + GWT.getHostPageBaseUrl() + "img/pdficon_large.png'>");
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/vBkHDauH6tsJ.
Hi Thomas,
I finally got it to work. You were correct in that once I put the images as part of the war file and "NOT" in the WEB-INF, it worked correctly. Although our JAVA guy here is insisting WEB-INF is the place it needs to be. I'm assuming it is a GWT thing that doesn't allow reading files from WEB-INF
but in any event, I got it working so thank you very much. Are we supposed to mark which people solved our problems and mark them complete on this site? I am totally new to GWT and this help board.