on 09-08-2004 2:16 PM
Hi everyone,
I am trying to put on a Button a jpeg.
This is the code :
Button bt1 = new Button("bt1");
bt1.setEncode(false);
bt1.setText("<img src=\"Winter.jpg\">");
The Winter.jpeg is located in the \dist\images folder.
When I run the iView, the image is not found.
Does anyone know how to deal with this.
Thank you.
Hi David,
try this:
bt1.setText("<img src=""+componentRequest.getWebResourcePath() + "/images/Winter.jpg">");
Kind regards
Francisco
Message was edited by: Francisco Villar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.