I tried with the slash but it didn't do anything, other than I lost the image
in Design mode. I'm using GWT Designer and my images show up ok in Designer.
It's when I deploy them that they don't show. When I added and selected the
image GWT Designer generated the following line of code with the following
path; which is where the image is located (I just picked one of the standard
images).
Image gwtImage = new Image("js/ext/resources/images/custom/Remove-32.png");
When I've deployed the portlet to liferay/jboss/tomcat, the image does appear
in the following deployment folder.
C:\MyLiferay\jboss-tomcat-4.2.3\server\default\deploy\projectname.war\projectname\js\ext\resources\images\custom
Is there any good documentation on creating and deploying GWT images?
I've tried adding gwtImage.setVisible(true) and it didn't do anything. I've
tried just about everything with the paths and even tried dropping the image in
various folders and it didn't do anything.
Are there any additional statements needed to get an image to display on a
panel when you deploy it?
----- Original Message -----
From: Thomas Arp
To: [email protected]
Sent: Friday, May 21, 2010 3:13 PM
Subject: SV: Images not displaying when application is deployed
Your issue might be the lack of a leading slash - have you tried with this?
Image gwtImage = new Image("/js/ext/resources/images/custom/Remove-32.png");
Thomas
Image gwtImage = new
Image("js/ext/resources/images/custom/Remove-32.png");
gwtImage.setTitle("I am a GWT Image Widget");
apContactListViewBrowser.add(gwtImage, 153, 157);
gwtImage.setSize("78px", "70px");
image.setVisible(true);
--
You received this message because you are subscribed to the Google
Groups "GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/gwt-ext?hl=en.
--
You received this message because you are subscribed to the Google
Groups "GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/gwt-ext?hl=en.
--
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/gwt-ext?hl=en.
--
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/gwt-ext?hl=en.
--
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/gwt-ext?hl=en.
--
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/gwt-ext?hl=en.