Skip to Content

web dynpro integrate graphics

hi everybody,

can anybody help me find a way to integrate graphics like *.tif to a web dynpro application?

Thanks Daniel

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 25, 2003 at 08:52 PM

    Hi Daniel,

    this is a little bit tricky, since there is no real IDE support to import images into a WD project yet.

    There is a "src" directory in your Web Dynpro project structure containing a subdirectory "Mimes". In the Mimes directory you will find package-related subdirectories for each component and application in your WD project in the directories Components and Applications respectively. To import the files you must copy them manually and add them to your WD project.

    Open the project directory with the name of your WD project in the workspace of the developer studio.Copy the image files to src/Mimes/Applications/<package>/AppName or src/Mimes/Components/<package>/ComponentName. Switch back to the developer studio and open the Navigator tab which is visible at the bottom of the project tree view of your WD project. Open the folder of the WD project and refresh the src-folder using the context menu. Return to the WebDynpro tab and look at the src folder there, the image file(s) should have been added.

    To integrate an image into a view, add an Image child to the view, bind the image source property to a value attribute (String) in the view context and set the attribute content to the filename in the wdDoInit() method for example. It's also possible to set the image source property to the filename directly without using a value attribute to check, if the image is working.

    Greetings

    Stefan

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Daniel,

      you can also use the Import->File System feature of the Developer Studio to copy the image files to the corresponding target folder. This makes life a little bit easier.

      Greetings

      Stefan