cancel
Showing results for 
Search instead for 
Did you mean: 

Server Side Rendering Problem.

Former Member
0 Kudos

Hi,

After shifting from Client side rendering to server side rendering , i am unable to invoke static html files from my IFrame Container.

I keep getting the "404 Resource not found " error eventhough the same works perfectly when i use it in CSR.

I have applied the wendynpro.sda as requested by SAP after shifting to SSR as the SSR vies had a few problems.

Regards,

Balaji

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

How do the URLs to these HTML pages look like?

You can create URLs for different categories of resources on

the Web Application Server using the WDURLGenerator API.

Armin

Former Member
0 Kudos

Hi Armin,

I am not using the url generator as i need to point to a static html only.

So i have a IFrame with the source pointing to a context and the context initialized to "xxx.html" and the same "xxx.html" has been added into the mimes folder of the project.

This workd perfectly when i change to CSR but when i change to SSR the above mentioned error occurs.

Could this be a bug in SSR and i which case when is the fix for the same expected?

Regards,

Balaji

Former Member
0 Kudos

It's a bug in the sneak preview.

As a workaround you might use WDURLGenerator to create an absolute URL.

I did not try it, but something like


IWDComponent component = ...;
WDDeployableObjectPart part = component.getDeployableObjectPart();
String url = WDURLGenerator.getAbsoluteWebResourceURL(part, resource);

should work.

Armin

Former Member
0 Kudos

Hi Armin,

You are right. The Url generator is what i am using when i need to open a different DC as a popup , and i think i have to use the same for static html's also.

Thanks,

Balaji