on 06-22-2007 2:13 PM
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!!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could be a silly question but, did you set the source property of the Image UIelement?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.