View Full Version : Apply image to grid column gets trusted certificate error
mmeyer
08-19-2005, 10:41 AM
I have a grid column that base on its value of U it will have an uparrow.gif applied or else a dnarrow.gif applied via this.setSource("../img/uparrow.gif").
The image never appears and I get an error message in the log file that states that the trusted certificate was not found.
Why is this happening on an image?
Thanks
aboni
08-22-2005, 12:28 PM
Hi!
I don't know if it's help you but...
When you add a image at runtime into your application under a SSL channel you must be sure that your servlet container trust in your Certificate.
If you don't know how do this, post what servlet container you is using.
Andrew
mmeyer
08-22-2005, 12:57 PM
We are just using Tomcat.
Also this seemed to fix the problem:
<resource name="arrows">
<frame src="img/uparrow.gif" />
<frame src="img/downarrow.gif" />
</resource>
Then referencing the images using setResourceNumber:
<method event="ondata" args="d">
if (d == "U")
{
this.setResourceNumber(1);
}
else
{
this.setResourceNumber(2);
}
Is this a better way for using the image?
</method>
aboni
08-22-2005, 01:15 PM
Hi!
That method is not wrong but images are not loaded in runtime.
You must analyze which best method for you.
Resources can be loaded at compile time and at run-time.
Resouces loaded at compile time increase more size to initial .swf file generated.
So, for small resources you can use "compile time load method" and to large resources you can use "run-time load method"
For more information read Chapter 16 of laszlo Explorer Guide.
If you have more questions post here!
Andrew
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.