cancel
Showing results for 
Search instead for 
Did you mean: 

integration of CSS files with Webdynpro Java application

Former Member
0 Kudos

Hi All,

I have a query on how to apply the CSS files to the webdynpro java application.

I got CSS files given by web design team, and i would like to add them to the webdynpro applicaiton. please let me know how to incorporated the CSS files to the webdynpro java application.

Thanks,

Portaluser100

Accepted Solutions (0)

Answers (2)

Answers (2)

daniel_ruiz2
Active Contributor
0 Kudos

Hi,

I'm not sure if this will work, neither exactly how the URL Mapping would translate to a proper valid deployed Application in your AS.

But you can try:

Netweaver Administrator ->Configuration -> Infrastructure -> Application Modules

Name: tc~wd~dispwda [Enter to Filter]

Select it and in the bottom panel choose "Web Dynpro Properties" tab. Scroll down a bit and you can find each client WDJ renders. Select the appropriate one and you can point to a new CSS. You could also do a @import in your own CSS to whatever SAP defaults.

In order to find out the paths, you can do a view-source on any Application - for instance,

<link rel="stylesheet" type="text/css" href="../../../../com.sap.ui.lightspeed/themes/sap_tradeshow_plus/ls/ls_sf3.css">

is rendered when using Chrome.

Container level settings should not be overwritten when applying a patch to WD-RUNTIME - but I wouldnt be surprised if it does.

Hope it helps,

D.

SandipAgarwalla
Active Contributor
0 Kudos

I do no think you can directly use CSS in web dynpro...instead what you can do is, modify the Web dynpro themes thru NDWS...There is a plugin Theme Editor in NWDS thru which you can modify the look & feel of web dynpro UI elements.

Then deploy the theme on the server and provides a ref to it from your web dynpro application.

Depending on your system version, download the required theme editor from SDN.

Sandip

Former Member
0 Kudos

Hi Sandip,

Thanks for your reply.

Please let me know how to provide the reference of it from your webdynpro application.

Thanks,

Portaluser100

SandipAgarwalla
Active Contributor
0 Kudos

as said, i dnt think you can directly include the css...

However if you have created the custom theme, i think you can refer it using the URL parameter

css-sapurl or something like that..

just search in SDN, you should find it