cancel
Showing results for 
Search instead for 
Did you mean: 

MIME directory in WDJ Tutorial #2: Question 1 of 2

Former Member
0 Kudos

On page 26 of WDJ tutorial #2 (Creating Extended WD App), it says to store the MIME objects in

com.sap.tc.webdynpro.tutorials.quiz.Quiz

But the directory

com.sap.tc.webdynpro.tutorials.quiz.QuizComp

is already there (created automatically by NWDS.)

Does the tutorial REALLY mean "Quiz", or does it mean "QuizComp"?

This is question 1 of 2 - see next post for related question ...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

If you want to use images in UI elements and want to simply use the image file name as property value (e.g. in Image.source), you have to put the images into folder

src/mimes/components/<qualified-component-name>

for the component containing the view with the UI elements. The runtime is then able to create the correct URL from the file name automatically.

Otherwise, you would have to create the URL in your application by yourself.

Armin

former_member181923
Active Participant
0 Kudos

AR -

I take your post to mean that the tutorial IS mistaken - i.e. that the image source files should be put in a sub-directiory called "QuizComp" (not "Quiz"), because the name of the component is "QuizComp", not "Quiz".

Am I interpreting your post correctly here ????

Thanks for the time you're taking here.

Former Member
0 Kudos

I don't exclude the possibility that there might be an error in this tutorial.

Armin

Answers (1)

Answers (1)

BeGanz
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi David,

you are right. I have not correctly migrated the Tutorial text to the applied naming conventions. When I updated the tutorial last year, I have not corrected this directory name:

Use of MIME Objects

<i>The following pictures are used in the quiz application. Save them locally in the directory src/mimes/Components/com.sap.tc.webdynpro.tutorials.quiz.<b>QuizComp</b>.</i>

Regards, Bertram

former_member181923
Active Participant
0 Kudos

Hi bg -

Thanks very much for taking the time to clarify.

If you have the time, please see the question I posted today about the instructions at the bottom of page 29 of Tutorial #2.

Thanks again.

djh