Hi
I'm using latest smart-gwt-2010-10-10 Build. I'm trying to load background images from rest web service. But the background images are not appearing if I deploy the application in any web or application server. It's working in Eclipse-GWT plugin server.
In the same place If I use some literal, then the code is working fine.
Example:
canvas.setBackgroundImage(images[0]); //not working in external web server server
Here images array , is loaded from web services call.
or
setBackgroundImage("images/back.jpg"); //working
or
String image="['product/cube.jpg']";
JSONArray r=new JSONArray(image);
c.setBackgroundImage(images.getString(0)); //Not Working
I'm not able to see the difference where I'm doing wrong. Please suggest me.
-raghu
I'm using latest smart-gwt-2010-10-10 Build. I'm trying to load background images from rest web service. But the background images are not appearing if I deploy the application in any web or application server. It's working in Eclipse-GWT plugin server.
In the same place If I use some literal, then the code is working fine.
Example:
canvas.setBackgroundImage(images[0]); //not working in external web server server
Here images array , is loaded from web services call.
or
setBackgroundImage("images/back.jpg"); //working
or
String image="['product/cube.jpg']";
JSONArray r=new JSONArray(image);
c.setBackgroundImage(images.getString(0)); //Not Working
I'm not able to see the difference where I'm doing wrong. Please suggest me.
-raghu
Comment