While trying to add a webpage portlet in Oracle WebCenter 11g either as a portlet or as a simple webpage hosted in the server, most of the times we encounter the following error;
"WARNING: Unable to load content in a frame. Frame content will load at the top level."
This is an obvious issue of iframe busting where the ADF layout of the webpage is unable to fit itself within the portlet container and hence is complaining. To overcome this issue, we need to add few lines of code to the web.xml file of the ADF project and redeploy the webpage.
Under the <web-app> root element of the web.xml, add the following <context-param> ;
<context-param>
<param-name>oracle.adf.view.rich.security.FRAME_BUSTING</param-name>
<param-value>never</param-value>
</context-param>
And there we go, WebCenter portal doesn't complain anymore on loading the webpage.
"WARNING: Unable to load content in a frame. Frame content will load at the top level."
This is an obvious issue of iframe busting where the ADF layout of the webpage is unable to fit itself within the portlet container and hence is complaining. To overcome this issue, we need to add few lines of code to the web.xml file of the ADF project and redeploy the webpage.
Under the <web-app> root element of the web.xml, add the following <context-param> ;
<context-param>
<param-name>oracle.adf.view.rich.security.FRAME_BUSTING</param-name>
<param-value>never</param-value>
</context-param>
And there we go, WebCenter portal doesn't complain anymore on loading the webpage.
Hi Satya,
ReplyDeleteIn webcenter spaces how can we achieve this? I have the same issue but in Webcenter spaces.
I think it has more to do with the 'portlet' content that is being added in WC spaces. You might want to check the portlet
Delete