Skip to main content

What you may need to know about source URI for an <af:inlineFrame>

The <af:inlineFrame> component creates an inline frame tag. The content of the inline frame is loaded through the source attribute.
e.g: <af:inlineFrame id="if1" source="/faces/someView.jspx"/>

Please note that, <af:inlineFrame> let you to define the 'relative' source URLs in two ways.

1. Relative to the current web application

<af:inlineFrame id="if1" source="/faces/someView.jspx"/>
In this case the source is looked up relative to the current web application's context. This approach is useful if the page resides in the same 'war' file

2. Relative to the server root

<af:inlineFrame id="if1" source="//<app_context>/faces/someView.jspx"/>
Please note that URL starts with double forward slash in this case. Here the source is looked up relative to the server root. This is very useful if the you need to load a page from another 'war' file within the same server root. Apparently this feature frees you from writing down the custom EL to extract the server root and using the same to construct the URIs.


Rommel Pino said…
Hi Jobinesh,

In addition to your two ways above, you could also define a source URI with a complete URL like "". The task details of the Oracle BPM worklist app is the best example for this.

Jobinesh said…
Cool..Thanks Pino !
Charles Prabhu said…
how to avoid scrolls?
Amit Seth said…
Hi Jobinesh,
I am trying to use inlineFrame for embedding pages form OPA (Oracle Policy Automation) in our adf application. These pages contains series of question answer set and some button too. so you answer a question and go to next page via link or button and so on. These whole page is wrapped inside inlineFrame. Now when there are buttons.. they causes the browser to navigate to actual url itself.
Is there a way that this can be prevented ?
Greetings from México Jobinesh!
is expression language available through this component?
Nel Neliel said…
Hi Jobinesh,

Can you show plain vanilla HTML in an inlineframe?
I mean the html tags. I have this use case wherein I am retrieving an HTML stub and I need to show this in an inline frame. I am thinking of doing this using the inlineframe. But I am not so sure since I would be mixing adf/plain html.

Can you advise please?

Popular posts from this blog

How to set Bind Variable Values at runtime ?

In this post I'm sharing a couple of approaches for programmatically setting bind variables values at run time. This post is an attempt to explain 'When to use what ?'[ In case if you are familiar with 'Bind Variables' in ADF BC, please refer Section 5.10, Working with Bind Variables in Fusion Developer's Guide ]

1. Set the Bind Variable value using RowSet::setNamedWhereClauseParam(...)

You can use use the setNamedWhereClauseParam(...) method on the ViewObject interface (which extends oracle.jbo.RowSet) to set the value for bind variables. Please note this sets the value on default RowSet. In other words, this doesn't have any effect on the secondary RowSets that you/system generates.
ViewObject vo = am.findViewObject("EmployeesView1"); vo.setNamedWhereClauseParam("bindVarDeptId", new Number(10)); vo.executeQuery();
2. Set the Bind Variable value using ViewObject's VariableValueManager::setVariableValue(...)

VariableValueManager Ma…

Happy New Year 2018 !

We can't go back and change the beginning, but we always can start where we are and change the ending. Believe in yourself and you will be unstoppable!

Wishing you and your family a very happy new year 2018 !!!