Thursday, February 9, 2012

image can show in debug mode, but not when deloyed to weblogic

in design time, the images is located at
war/Images/abc.png

and I have a class called Commons in client package and stored the
image location as string

public class Commons {
public static final String abc_path = "/Images/abc.png"
........
}

then in the page show image, I write the following
Image abc = new Image (Commons.abc_path);
HorizontalPanel imagePanel = new HorizontalPanel();
imagePanel.add(abc);
......

the image can show in development mode, but when compile and deployed
to weblogic,
the images folder still under war folder
war/Images/abc.png

but the image cannot be shown!!

what is the reason?

--
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate