Skip to Content
0
Former Member
May 03, 2006 at 11:36 AM

How to use a central "deposit" for mimes

9 Views

Hello there,

I have created several web dynpro applications which use several *.gif files for the buttons. Today I always copy the used *.gif files to the mimes directory of each application/component.

I rather would like to use one central "deposit" for these mimes.

Just for testing I tried the following solution:

1. I created a new local DC, application XXApp and component XXComp for storing the icons

2. I created another local DC, application YYApp Component YYComp and added the following statements into Component YYComp:

WDDeployableObjectPart appPart = WDDeployableObject.getDeployableObjectPart( "xx.com/example",

"XXApp", WDDeployableObjectPartType.APPLICATION);

wdContext.currentContextElement().setCancelIcon(WDURLGenerator.getWebResourceURL(appPart, "Cancel.gif"));

I also created a View with a button and used the context CancelIcon to contain the URL to the Cancel.gif icon but I did not manage to get it working

What am i doing wrong or is there another way to do this job.

thanks

Bertil Rebergen