cancel
Showing results for 
Search instead for 
Did you mean: 

Image not showing

Former Member
0 Kudos

Hi to all!!

I have an image UI Element binded to a context attribute. At first the attribute is set to null, so the image doesn't appear, that's ok! But when I set the image path, the only thing that the application shows is a square with a red X inside.

The path that I'm using is relative to the component, so I only pass the file's name ("bien.gif"). The image is inside the proyect's folder at the path \src\mimes\Components\com.inelectra.gav.componentes.Preferencias\bien.gif

I'm using components inside components but I understand that it doesn't matter as long as the component which is using the image has a copy inside its own mime folder.

What else could be the problem?

Thanks a lot in advance!!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ale,

Shall we go in the reverse path.

The application shows is a square with a red X inside right.

Can you check red X mark image address.

To check image address

Deply the application ->red X mark image->Right click>properties--->imgae address.

Compare that address with the below path

\src\mimes\Components\com.inelectra.gav.componentes.Preferencias\bien.gif

If it's not same create accronding to that from navigator.

Hope this should workout

Rgds

-SS

Answers (4)

Answers (4)

Former Member
0 Kudos

I tried sridhar sabbani's option and the url that it shows is http://.../[ProjectName]/Components/com.inelectra.gav.componentes.preferencias.Preferencias/bien.gif

I noticed that the url doesn't match with the folder I'm using and created a new one with the address and problem was solved...

thanks a lot!!

Former Member
0 Kudos

You could use HttpWatch or something similar to capture the server response. There, search for the rendered image and check its src-attribute value.

Open this URL with your browser and check if the image can be accessed.

Armin

Former Member
0 Kudos

hahahaha!! Good one... but yeah...!! I did...

that's why when i set the context attribute (through an event) to the file's name, it shows the square with the red X instead of showing nothing!

So the problem is that instead of the image it is showing a red X!!! (similar to the one in normal web browsing when an image is not found)

Moreover, I think the application throws an exception it we don't bind it!

Thanks!

Message was edited by:

Alejandro Monteverde

Former Member
0 Kudos

Could be a silly question but, did you set the source property of the Image UIelement?