on 01-27-2005 4:21 PM
Hi Guys,
I have try to show images in my web dynpro. I have read on how to do it and it shows in my developer studio,but it don't shows on my webpage when I run that application. Does anyone knows why? Thanks.
Regards,
C
Hi You have to place your Image in the following folder of your project/src/mimes/components/<component>/imagename
donot forget to put your image name correctly,don't include extension jpeg letus say if ur putting clouds.jpeg, just give name as clouds and copy on to the folder structure, while giving name to your dynpro image source name give clouds.jpg it will work..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you import the image files in NWDS into folder src/mimes/components/<your_component>, then you can use the image file name for properties like "Image.source".
Did you do that?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<img class="urImg urV" src="/webdynpro/resources/local/WebDynpro_Basics/Components/com.sap.tc.webdynpro.tutorials.introduction.basics.FirstComponent/clould.jpg" id="ECCF.FirstComponentView.WelcomeImage" ct="Image" border="0"></span></div></td></tr></table></span></div><table border="0" cellpadding="0" cellspacing="0" class="urSTbvStd"><tbody><tr><td><table cellpadding="0" cellspacing="0" id="WD_MessageBar" ct="TableView" width="100%" nmi="0" style="empty-cells:show;"><tbody></table></td></tr></table>
I have change the image to a jpg one, also cannot. The code tag is above. Thanks.
Regards,
Conrad
Hi Armin
I am sorry for asking so many questions, but I am new to this. Have never done Java for a long long time. Do I need to activate settings on my server also?
Sorry, what do u mean by hostname not fully qualified? I am using my company's server.
I have tried to add clould.jpg at the end but it still does not show.
I also have add the "/webdynpro/resources/local/WebDynpro_Basics/Components/
com.sap.tc.webdynpro.tutorials.introduction.
basics.FirstComponent/clould.jpg"
at the end, also cannot.
Hi Ramakrishna,
I have also tried your solution, also cannot.
Strange. Perhaps there is some other problem in your application. Are there any errors in the task view?
You could try to reduce the problem and create a simple test application with one single view containing only an Image UI element.
- Import the image file into the mimes folder of the component (as described)
- Set the "source" property of the Image UI element to the filename (<b>including</b> the extension ".png" or ".jpg")
- Rebuild the project
- Deploy and run the application
Does it work?
Armin
Message was edited by: Armin Reichert
Sorry, it does not work too. I have another problem, I did the extended Web Dynpro application, I got an error which says that the file Answer.properties cannot be found. Is there a setting in the J2EE server or some other server that needs to be set? It seems like all the files in the folders cannot be seen.
Regards,
Conrad
The application can't start because the system can't find the file Answer.properties . There are no errors in the deployment console.
error : 'java.util.MissingResourceException: Can't find bundle for base name com.sap.tc.webdynpro.tutorials.quiz.resources.Answers, locale en_US
at java.util.ResourceBundle.throwMissingResourceException
(ResourceBundle.java:839)'
That's the error I have went I try to run my other application. This got me thinking whether there is a setting on the server that I need to set for them to see the files? Cos like the image file, this text file also cannot be found.
Conrad
Message was edited by: Conrad Chia
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.