Problem on af:inlineFrame.

Hi All..
The following code is for yours reference.
<af:panelStretchLayout id="pgHelp"
dimensionsFrom="auto"
startWidth="0px"
endWidth="0px" topHeight="0px"
bottomHeight="0px">
<f:facet name="center">
<af:panelStretchLayout
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
id="RENGASCROLL" startWidth="0px"
endWidth="0px" topHeight="0px"
bottomHeight="0px" styleClass="AFStretchWidth"
dimensionsFrom="children">
<f:facet name="center">
<af:inlineFrame source="#{viewScope.helpURL}" id="jsffILFrame"
inlineStyle="border-color:Navy;border-width:thin;border-style:solid;"
shortDesc="Help"
styleClass="inlinestlye"
sizing="none"/>
</f:facet>
</af:panelStretchLayout>
Now i have to applied html page at run time through inlineframe(source="#{viewScope.helpURL}).But it's not stretching.
Any guidence ..
Thakns,
Rengasamy.A

Remove the dimensionsFrom="children" property for the panel Stretch Layout:
<af:panelStretchLayout xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
id="RENGASCROLL" startWidth="0px" endWidth="0px"
topHeight="0px" bottomHeight="0px"
styleClass="AFStretchWidth">
<f:facet name="center">
<af:inlineFrame source="http://www.google.com" id="jsffILFrame"
inlineStyle="border-color:Navy;border-width:thin;border-style:solid;"
shortDesc="Help" styleClass="inlinestlye"
sizing="none"/>
</f:facet>
</af:panelStretchLayout>
Thanks,
Navaneeth

Similar Messages

  • Problem when using inlineFrame to include external web page.

    I built a ADF web application which include some external web pages.
    I use the ADF components: panelTabbed + showDetailItem + inlineFrame.
    Each tab is point to a external web page. see my code belows:
    <af:panelTabbed id="pt1">
    <af:showDetailItem text="showDetailItem 1" id="sdi1"
    disclosureListener="#{myBackingBean.disclosureListener}">
    <af:inlineFrame source="http://www.baidu.com" id="ilf1" shortDesc="4444444444"/>
    </af:showDetailItem>
    <af:showDetailItem text="showDetailItem 2" id="sdi2">
    <af:inlineFrame id="if1" source="query_refresh_by_poll_2.jsf"/>
    </af:showDetailItem>
    <af:showDetailItem text="showDetailItem 3" id="sdi3">
    <af:inputText label="Label 1" id="it1"/>
    </af:showDetailItem>
    <af:showDetailItem text="showDetailItem 3" id="sdi4">
    <af:inlineFrame id="if2" source="untitled2.jsf"/>
    </af:showDetailItem>
    </af:panelTabbed>
    It almost done except one thing: When I switched the tab back and forth, the input parameter in the previous tab will be lost.
    It seems af:inlineFrame always reload the page and clear every input by user !
    How to preserve the user input when switched the tab back and forth?
    Thanks.

    Hi Frank, thanks for you reply.
    Let me explain my case again to make sure you know what I want to do.
    because I do think it is a usual requirment, I want you give me a clear answer about it.
    In my ADF web App, I have 3 pages: main.jsf,untitled1.jsf,untitled2.jsf
    main.jsf content:
    <af:form id="f1">
    <af:panelTabbed id="pt1">
    <af:showDetailItem text="showDetailItem 1" id="sdi1">
    <af:inlineFrame id="if1" source="untitled1.jsf"/>
    </af:showDetailItem>
    <af:showDetailItem text="showDetailItem 2" id="sdi2">
    <af:inlineFrame id="if2" source="untitled2.jsf"/>
    </af:showDetailItem>
    </af:panelTabbed>
    </af:form>
    untitled1.jsf content:
    <af:inputText label="Label 1" id="it1"/>
    untitled2.jsf content:
    <af:inputText label="Label 1" id="it1"/>
    Run main.jsf, in tab1, fill someting in the inputText, then click tab2, then click tab1 back, the input text that I just entered was cleared.
    I want to keep the user input when switch between the tabs.
    Is it possible in ADF?

  • Af:inlineFrame problem

    Hi all,
    I'm trying to expose remote applications in a main one using an inline frame like this:
    <af:inlineFrame source="http://127.0.0.1:7101/application/faces/adf.task-flow?adf.tfId=subflow-flow&amp;adf.tfDoc=/WEB-INF/subflow-flow.xml"
         id="if1" styleClass="AFStretchWidth" sizing="preferred"/>
    The sizing property is set to "preferred" in order to the inline frame grows based on its content and avoid any scroll.
    The problem is that when the page showed in the inline frame grows without a full refresh, the dimensions of the inline frame remains and scrolls are displayed.
    Is there any way to avoid this behavior and show all the content of the inline frame without scrolls?
    I'm using JDev 11.1.1.4
    Best regards,
    Luis

    "The preferred size is recalculated whenever the content changes."
    +"Because we do not have rights to query and set DOM properties on remote pages, preferred sizing can only be set if the iframe source is served from the same domain as the page. Attempting to set preferred sizing on a foreign iframe source will result in a warning."+
    http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_inlineFrame.html

  • InlineFrame problems to show inlinframe IE 8 EI 7

    I find an issue with IE 7 and IE 8 to show af:inlineFrame components in Internet Explorer 7 and Internet Explorer 8.
    When,
    A. I use this for Mozilla and Chrome Browser:
    <af:inlineFrame source="http://192.168.1.121:7001/test/faces/faces/pages/Opciones/Solicitudes/RegistrarSolicitud.jsp"
    binding="#{backingBeanScope.backing_pages_principal2.if1}"
    styleClass="AFLinkIEWorkaround" shortDesc="inlineFrameContenedor"
    id="if3" inlineStyle="height:auto;width:801px;" sizing="preferred" />
    My pages are ok, because it shows the inlineFrame without the vertical ScrollBar and Horizontal ScrollBar.
    but when
    B. I use Internet Explorer 7 and Internet Explorer 8.
    The inlineFrame show a Vertical ScrollBar and Horizontal ScrollBar
    I was finding out, and I Found, some pages to solve this:
    http://jdevadf.oracle.com/adf-richclient-demo/docs/release.html
    In this page talks about : "AFLinkIEWorkaround"
    It allows to work better in IE, but it doesnt work.
    Thanks in advance,

    Hello,
    Yes I try to use the inLineframe for autosizing the pages inside the InLineFrame Component,
    But it doesnt work for IE 7 or IE8.
    <af:inlineFrame source="#{backingBeanScope.backing_pages_principal2.mstrBeanSourceFrame}"
    binding="#{backingBeanScope.backing_pages_principal2.if1}"
    styleClass="AFStretchWidth" shortDesc="inlineFrameContenedor"
    id="if3" partialTriggers="cml" inlineStyle="height:auto;" sizing="preferred" />
    In this http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_inlineFrame.html page says that I have to put inLineFrame
    in Strecht Component like panelStretchLayout, panelSplitter. (Geometry Managment)
    But it doesnt work I can deal with it because I put the width and height in Pixels but it much better if it works with autosizing into IE 7 and IE 8.
    how can I Find the Bug?
    There are:
    Oracle IE7 bug 8809021 ?
    Oracle IE7 bug 9869651 ?
    http://jdevadf.oracle.com/adf-richclient-demo/docs/release.html
    Thanks in advance,

  • Oracle-ADF inlineFrame initializing view scoped bean twice

    I am facing strange issue related with af:inlineFrame component. Trying to display/render ADF page inside of af:popup within af:inlineFrame component. The weird thing is when the popup displayed; view scoped bean's @PostConstruct method called twice. That means bean is initialized twice. However it needed to be initialized once since bean is referenced from the page that is going to be displayed inside af:inlineFrame.
    Correct flow gotta be:
    Click to button openPopup() method called.
    openPopup() sets URI then opens popup.
    inlineFrame source property set as it's going to display framePage.jspx.
    JSF scans framePage.jspx code finds out there is a reference to FrameBean inside af:outputLabel
    Construct FrameBean then call @PostConstruct method.
    Call appropriate getter and render page.
    What happens in my case:
    Click to button openPopup() method called.
    openPopup() sets URI opens popup.
    inlineFrame source property set as it's going to display framePage.jspx.
    JSF scans framePage.jspx code finds out there is a reference to FrameBean inside af:outputLabel
    Construct FrameBean then call @PostConstruct method.
    Call appropriate getter and render page.
    Construct FrameBean then call @PostConstruct method.
    Call appropriate getter and render page.
    Popup located like:
    <af:popup id="mainPopup" binding="#{mainBean.mainPopup}">
    <af:dialog id="mainDialog">
      <af:inlineFrame source="#{mainBean.URI}"> </af:inlineFrame>
      </af:dialog>
    </af:popup>
    Showing popup via af:button action="#{mainBean.openPopup}":
    public void openPopup() {
    this.setURI("http://localhost:7001/app/framePage.jspx");
      RichPopup.PopupHints hints = new RichPopup.PopupHints();
    this.getMainPopup().show(hints);
    framePage.jspx:
    <?xml version='1.0' encoding='UTF-8'?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <jsp:directive.page contentType="text/html;charset=UTF-8" />
    <f:view>
    <af:document title="Frame Demo" id="demoDocument">
      <af:form id="demoForm">
    <af:outputLabel value="#{frameBean.commonId}">   </af:outputLabel>
      </af:form>
      </af:document>
    </f:view>
    </jsp:root>
    FrameBean:
    @ManagedBean
    @ViewScoped
    public class FrameBean {
    private String commonId;
      @PostConstruct
      public void afterInit() {  } 
      public String getCommonId() {
    return commonId;
    public void setCommonId(String commonId) {
    this.commonId = commonId;
    Making FrameBean @SessionScoped solves this issue since bean is kept with session but I don't want to keep it within session. Also setting source property of af:inlineFrame in jspx as hardcoded not fixing the problem.

    im using ADF Essential on Glassfish 3.1 with no problem, but glassfish is heavyweight. I think Oracle ADF is not dependent to Application Server , then i tried to use my project with Tomcat 7. I deployed my application on Tomcat 7 , but im getting some exceptions.
    Not all application servers support Oracle ADF.
    Refer the certification matrix, Tomcat 7 is not listed as being supported.
    http://www.oracle.com/technetwork/developer-tools/jdev/index-091111.html

  • InlineFrame are not working in IE

    Hi All,
    On Documents tab we have links which open a PDF file from a folder and displays in inlineFrame.
    The inlineFrame is calling a servlet which is returning PDF contents. PDF displays fine in chrome & FF, but on IE we are having issues, instead of PDF it is displaying current jsf page in the inlineFrame.
    Thanks in advance
    Regards
    Vidya

    No, that's not what it means at all. If you use Adobe code you will have
    problems. If you learn to write the code yourself, you will not have
    problems.
    As for IE9, it will support media queries unless you have dumped it into
    Compatibility View. To prevent that, follow the directions in this forum
    post:
    http://www.pviiforums.com/topic.php?id=9
    "Does that mean that anyone in older versions of any browser can't view
    just the desktop version?"
    That does not make sense. Old browsers will see the default desktop
    version. Outside of old IE versions, old browsers would be statistically
    irrelevant. For old versions of IE, depending on your default layout,
    you could simply write a conditional comment to serve it a fixed-width
    version.
    I'm not trying to sell you anything, but look at this page in modern
    browsers, and then in older browsers:
    http://www.projectseven.com/products/templates/pagepacks/dmm/affinity/affinity-themes/boar droom/layout-3-01.htm
    Al Sparber - PVII

  • ADF webapp deployment problem...

    I'm using Jdeveloper 11.1.1.2.0 and making some ADF web application.
    Actually deploying to Weblogic has no problem.
    But when I access to the web page, I got a NullPointerException like this:
    java.lang.NullPointerException
    at oracle.adf.model.binding.DCIteratorBinding.getSortCriteria(DCIteratorBinding.java:3710)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding.__getSortCriteria(FacesCtrlRangeBinding.java:261)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.getSortCriteria(FacesCtrlHierBinding.java:405)
    at org.apache.myfaces.trinidad.component.UIXCollection.getSortCriteria(UIXCollection.java:476)
    It seems it can't get a data control.
    But when I try on my integrated WLS, it works fine.
    Why did it fail?
    Thanks.

    Thanks, pino.
    But I think why it works fine on Local Integrated WLS.
    it failed only on remote WLS.
    Anyway,
    this is Main.jspx:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1" title="HKMC MES POC">
    <af:messages id="m1"/>
    <af:form id="f1">
    <af:panelStretchLayout id="psl1">
    <f:facet name="center">
    <af:decorativeBox id="db1">
    <f:facet name="center">
    <af:panelTabbed id="pt1">
    <af:showDetailItem text="BAM/Dashboard" id="sdi1">
    <af:inlineFrame id="if1"
    inlineStyle="height:100%"
    styleClass="AFStretchWidth"/>
    </af:showDetailItem>
    <af:showDetailItem text="Work Order" id="sdi2">
    <af:panelSplitter id="ps1"
    inlineStyle="width:1282px; height:507px;"
    splitterPosition="520">
    <f:facet name="first">
    <af:panelGroupLayout layout="scroll"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    id="pgl2">
    <af:table value="#{bindings.WomProdMasterView1.collectionModel}"
    var="row"
    rows="#{bindings.WomProdMasterView1.rangeSize}"
    emptyText="#{bindings.WomProdMasterView1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.WomProdMasterView1.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.WomProdMasterView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.WomProdMasterView1.collectionModel.makeCurrent}"
    rowSelection="single" id="t1" width="500"
    partialTriggers="::cb2 ::cb1"
    inlineStyle="height:483px;">
    <af:column sortProperty="OrderIndex" sortable="true"
    headerText="OrderIdx"
    id="c5" align="center" width="45">
    <af:outputText value="#{row.OrderIndex}" id="ot2">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.WomProdMasterView1.hints.OrderIndex.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="PlanDate" sortable="true"
    headerText="PlanDate"
    id="c3" width="95" align="center">
    <af:outputText value="#{row.PlanDate}" id="ot4"/>
    </af:column>
    <af:column sortProperty="ProdSeq" sortable="true"
    headerText="Prod Seq."
    id="c2" align="center" width="80">
    <af:outputText value="#{row.ProdSeq}" id="ot5"/>
    </af:column>
    <af:column sortProperty="ModelCode" sortable="true"
    headerText="Model Code"
    id="c4" align="center" width="75">
    <af:outputText value="#{row.ModelCode}" id="ot3"/>
    </af:column>
    <af:column sortProperty="BodyNo" sortable="true"
    headerText="Body No"
    id="c1" align="center" width="73">
    <af:outputText value="#{row.BodyNo}" id="ot1"/>
    </af:column>
    <af:column sortProperty="OptionCode" sortable="true"
    headerText="OpCode"
    id="c6" align="center" width="77">
    <af:outputText value="#{row.OptionCode}"
    id="ot6"/>
    </af:column>
    <af:dragSource actions="MOVE" defaultAction="MOVE"
    dragDropEndListener="#{Master2DelayBean.dragDropEndListener}"
    discriminant="m2d"/>
    </af:table>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="second">
    <af:panelSplitter id="ps2" splitterPosition="50">
    <f:facet name="first">
    <af:panelGroupLayout layout="vertical"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    id="pgl1" halign="center"
    valign="middle">
    <p>
    </p>
    <p>
    <af:commandButton text=">" id="cb2"
    actionListener="#{Master2DelayBean.buttonListener}"/>
    </p>
    <p>
    <af:commandButton text="&lt;" id="cb1"
    actionListener="#{Delay2MasterBean.ButtonListener}"/>
    </p>
    <p>
    <af:selectBooleanCheckbox
    id="sbc1"
    label="Insert Before Target Master Record"
    valueChangeListener="#{Delay2MasterBean.chboxChangeListener}"
    value="false"/>
    </p>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="second">
    <af:table value="#{bindings.WomProdDelayView1.collectionModel}"
    var="row"
    rows="#{bindings.WomProdDelayView1.rangeSize}"
    emptyText="#{bindings.WomProdDelayView1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.WomProdDelayView1.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.WomProdDelayView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.WomProdDelayView1.collectionModel.makeCurrent}"
    rowSelection="single" id="t2"
    partialTriggers="::cb2 ::cb1" width="500">
    <af:column sortProperty="PlanDate" sortable="true"
    headerText="PlanDate"
    id="c9" align="center" width="95">
    <af:outputText value="#{row.PlanDate}"
    id="ot9"/>
    </af:column>
    <af:column sortProperty="ProdSeq" sortable="true"
    headerText="Prod Seq."
    id="c11" align="center" width="80">
    <af:outputText value="#{row.ProdSeq}" id="ot7"/>
    </af:column>
    <af:column sortProperty="ModelCode"
    sortable="true"
    headerText="Model Code"
    id="c10" align="center" width="75">
    <af:outputText value="#{row.ModelCode}"
    id="ot10"/>
    </af:column>
    <af:column sortProperty="BodyNo" sortable="true"
    headerText="Body No"
    id="c8" align="center" width="73">
    <af:outputText value="#{row.BodyNo}" id="ot8"/>
    </af:column>
    <af:column sortProperty="OptionCode"
    sortable="true"
    headerText="OpCode"
    id="c7" width="77" align="center">
    <af:outputText value="#{row.OptionCode}"
    id="ot11"/>
    </af:column>
    <af:collectionDropTarget dropListener="#{Master2DelayBean.dndListener}"
    actions="MOVE"
    modelName="m2d"/>
    </af:table>
    </f:facet>
    </af:panelSplitter>
    </f:facet>
    </af:panelSplitter>
    </af:showDetailItem>
    </af:panelTabbed>
    </f:facet>
    <f:facet name="top"/>
    </af:decorativeBox>
    <!-- id="af_one_column_stretched" -->
    </f:facet>
    </af:panelStretchLayout>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    And this is MainPageDef.xml
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="11.1.1.55.36" id="MainPageDef"
    Package="oracle.view.pageDefs">
    <parameters/>
    <executables>
    <variableIterator id="variables"/>
    <iterator Binds="WomProdMasterView1" RangeSize="25"
    DataControl="MesAppModuleDataControl"
    id="WomProdMasterView1Iterator"/>
    <iterator Binds="WomProdDelayView1" RangeSize="25"
    DataControl="MesAppModuleDataControl"
    id="WomProdDelayView1Iterator"/>
    </executables>
    <bindings>
    <tree IterBinding="WomProdMasterView1Iterator" id="WomProdMasterView1">
    <nodeDefinition DefName="oracle.model.WomProdMasterView"
    Name="WomProdMasterView10">
    <AttrNames>
    <Item Value="OrderIndex"/>
    <Item Value="PlanDate"/>
    <Item Value="ProdSeq"/>
    <Item Value="BodyNo"/>
    <Item Value="ModelCode"/>
    <Item Value="OptionCode"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    <tree IterBinding="WomProdDelayView1Iterator" id="WomProdDelayView1">
    <nodeDefinition DefName="oracle.model.WomProdDelayView"
    Name="WomProdDelayView10">
    <AttrNames>
    <Item Value="PlanDate"/>
    <Item Value="ProdSeq"/>
    <Item Value="ModelCode"/>
    <Item Value="BodyNo"/>
    <Item Value="OptionCode"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    </bindings>
    </pageDefinition>

  • Problem loading generated (X)HTML in Internet Explorer dialog window

    Hi,
    Using JDeveloper 11.1.1.4.0.
    In our ADF application we are providing a preview functionality to letters that the users can generate. The preview XHTML code is generated by stored procedures and displayed in a dialog window as an iframe. This works fine in Firefox but in Internet Explorer there is only a spinning blue circle where the iframe is supposed to be and the preview is not loading. If I copy-paste the preview URL to a separate IE window it loads up correctly, so there is something wrong in the way the dialog window tries to display the data.
    This is the preview JSPX page:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <!-- jsp:directive.page contentType="text/html;charset=UTF-8"/ -->
      <f:view afterPhase="#{backingBeanScope.RenderBean.checkPhase}">
        <af:document id="d1" rendered="false">
          <af:messages id="m1"/>
        </af:document>
      </f:view>
    </jsp:root>The preview page is embedded as an iframe on the dialog window:
    <f:facet name="center">
                <af:inlineFrame id="if1"
                                source="/faces/ActualTemplatePreview?messageTemplateId=#{pageFlowScope.MessageTemplateId}&amp;isOpenTemplate=#{pageFlowScope.IsOpenTemplate}&amp;messageText=#{pageFlowScope.MessageText}"
                                styleClass="AFStretchWidth"/>
              </f:facet>And this is the backing bean:
    public class RenderBean{
        public RenderBean() {
            super();
        private BindingContainer _b(){
          return BindingContext.getCurrent().getCurrentBindingsEntry();
        public void checkPhase(PhaseEvent event){
            if(PhaseId.RENDER_RESPONSE == event.getPhaseId()){
              final ResponseWriter writer = FacesContext.getCurrentInstance().getResponseWriter();
              try{
                final Object xhtml = _b().getOperationBinding("GetXhtml").execute();
                writer.append(xhtml.toString());
              }catch(IOException e){
                throw new RuntimeException(e);
    }GetXhtml method is defined in the application module and calls the stored procedure which generates the code.
    Any ideas what might be the problem? I read some older threads about Internet Explorer having problems with MIME types when displaying PDF inline (see e.g. {thread:id=2361293}), could this somehow relate to displaying (X)HTML code too?
    Regards,
    Joonas

    Could be something with an IE conditional statement in the code used to place the Flash on the Web Page. Post a link to the page and let us take a look.
    Best wishes,
    Adninjastrator

  • Af:inlineFrame and ADF 12.1.3 on IE 8  throws javascript warning "Stack overflow at line: 0"

    ADF 12.1.3 and IE 8.
    On any page having  <af:inlineFrame> IE8 shows a popup warning "Stack overflow at line: 0" on each page load.
    It very easy to reproduce creating two pages, adding to the first page  <af:inlineFrame id="if1" source="secondpagejsf"/>
    I see that IE 8  Oracle JDeveloper and ADF 12c (12.1.3) Supported Systems is not supported any more but there are so many XP with IE still alive on our customers base.
    Have anyone found a workaround for the above problem ?
    Yiannis

    Hi Yiannis,
    There is some issue with compatibity of inlineFrame and IE8.
    Not sure this can help but try to relate with this solution : http://sanjeev-technology.blogspot.in/2014/11/adf-login-page-keeps-on-coming-back-in.html
    Regards,
    KP

  • Session Expired nested application inside af:inlineFrame weblogic cluster

    We have a problem trying to call another application inside af:inlineFrame, the main problem is that when the host application invokes the guest applicacion inside the iframe the session get expired,
    The company have a architecture with 2 weblogic (10.3.6) servers, there are two cluster, in each one is installed one application, Application A and Application B
    The Message error raised is ""Could not find saved view state for token 11we1yfwcs""
    This link contains the Document with the detailed information.
    http://www.4shared.com/office/er4hb4xz/Adjunto_soporte_22-10-2012_-_E.html?
    Thanks in advance.
    Edited by: 967422 on 24-oct-2012 8:14

    Hi,
    Make sure to increase sessiontimeout from application side there is nothing can be done from server side.
    So I would say try to increase sessiontimeout from app side
    Regards,
    Kal

  • AdfCustomEvent.queue fails from javascript inside af:inlineframe - how to?

    Using JDev 11g; have an ADF page with an Inline Frame component which loads a HTML page in the Project which uses some javascript and I want to be able to send a payload back to the ADF application when a client event occurs. I've therefore flagged the Inline Frame as a ClientComponent, and added a ServerListener, then added the AdfCustomEvent.queue call into the frame HTML javascript file using ...
    function choosePart(bodyPart) {
    console.log("@@ firing choosePart for " + bodyPart);
    AdfCustomEvent.queue(AdfPage.PAGE.findComponent("pt1:ifbody"), "bodyPartClicked", {pobCode:bodyPart}, false);
    ... but it returns:
    AdfPage.PAGE is undefined
    ... to the Firebug Console and doesn't make it to the server-listener. At times, it will complain about AdfCustomEvent is undefined.
    My problem seems to be that the HTML/javascript referenced by the Inline Frame doesn't know anything about the ADF context in which it operates. My options then appear to be:
    a) add something to the HTML so that it can link back to the ADF context; or call the AdfCustomEvent.queue in a different way that does this
    b) use an f:verbatim instead of the af:inlineframe, and load the HTML directly into the ADF page where this context is established. My issue with this is that the HTML doc-type on the rendered ADF page includes the "http://www.w3.org/TR/html4/loose.dtd" specification, which compromises some of the HTML functionality; so to pull this off, I'd have to diagnose/correct here; which I'd rather keep off the critical path at this point.
    So wondering if anyone might have worked a), and can describe a solution.
    Thanks.

    For the record; reading on javascript sorted this out; just needed to use a "parent" prefix, and works fine.
    parent.AdfCustomEvent.queue(parent.AdfPage.PAGE.findComponent("pt1:ifbody"), "bodyPartClicked", {pobCode:bodyPart}, false);

  • About InLineFrame..

    Hi,
    I have 2 jspx pages, a.jspx & b.jspx.
    a.jspx contain,
    1) Adf table base on adf view object, it shows all rows in table.
    2) InLineFrame and abutton that onclick set the InLineFrame source to b.jspx:
    <af:inlineFrame
    binding="#{PeleEcnMB.myInlineFrame}"
    inlineStyle="width:80%; height:80%;"/>
    <af:commandButton text="New ECN"
    action="#{PeleEcnMB.newEcn}"
    partialSubmit="false" immediate="true"/>
    b.jspx contain,
    1) Adf form in new row mode base on the same view object in a.jspx.
    2) Commit button to save the new row in db.
    The problem is,
    When i click on the commit button the table in a.jspx is not refresh.
    How can i do refresh to the view in a.jspx from b.jspx ?
    Is it possible to do this in Manage Bean ?
    Thank you.

    Hi,
    use "subview" instead of inline frame and it works. Inline frame doesn't make the content you reference part of the document and thus the PPR dow not work
    Frank

  • af:inlineFrame error when specifing a jspx source

    Hello all,
    I'm using jdev 11.1.1.3. What I'm trying to do is display a PDF within another page. The user will view the PDF and then click on a button to approve, reject, etc the PDF. These buttons exist on the main page.
    All of my backing beans extend a custome phase listener.
    The main page contains the following tag:
    <af:inlineFrame binding="#{pageFlowScope.backing_view.pdfframe_container}"
    id="pdfframe_container" shortDesc="PDF" styleClass="AFStretchWidth"
    source="/faces/pdf_frame.jspx"/>
    The page pdf_frame.jspx is basically empty except that during the render phase it retrieves the PDF and streams it to the response output.
    The above source url gives the following error...
    +<ViewHandlerImpl><renderView> Trinidad's ViewHandler is registered more than once. To avoid initialization problems, make sure that only one Trinidad implementation jar is loaded+
    +<RenderingContext><attach> Trying to attach RenderingContext to a thread that already had one.+
    +<CoreRenderKit><encodeFinally> No RenderingContext available+
    java.lang.NullPointerException
         at oracle.adfinternal.controller.faces.context.JSFRequestMapAdapter.getRequestMap(JSFRequestMapAdapter.java:29)
         at oracle.adfinternal.controller.context.LifecycleContextHelper.getRequestMap(LifecycleContextHelper.java:72)
         at oracle.adfinternal.controller.context.LifecycleContextHelper.getLifecycleContext(LifecycleContextHelper.java:36)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.getLifecycleContext(ADFPhaseListener.java:153)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.dispatchAfterPagePhaseEvent(ADFPhaseListener.java:124)
         Truncated. see log file for complete stacktrace
    I've also tried SubForms and JSP Includes but nether improved the situation.
    Is there some limitation on using faces pages within an iframe?
    What must I do to get this to work?
    Thanks,
    Brian

    John,
    Any non-faces target seems to work. My initial thought was to use a servlet. I was just hopeing that a JSF source could be used as well.

  • Af:inlineFrame executes its source attribute three times

    I have inserted an inlineframe in a jsf page fragment.
    Initially, the inline frame is visible=false.
    The page fragment also contains a af:commandButton thatn makes visible=true on the inline frame when it is clicked.
    This is the definition of the inlineframe and the button:
             <af:commandButton text="#{viewcontrollerBundle['ALU.GENERAR_EXTRACTO']}"
                                binding="#{backingBeanScope.extractoNotasBB.cb1}"
                                id="cb1"
                                icon="http://itemsweb.esade.edu/apps/img/pdf-icon.png"
                                action="#{backingBeanScope.extractoNotasBB.URLIframe_action}"
                                disabled="true"  partialTriggers="soc1"/>
             <af:inlineFrame binding="#{backingBeanScope.extractoNotasBB.if1}"
                              id="if1"
                              source="#{backingBeanScope.extractoNotasBB.URLIframe}"
                              shortDesc="Listado pdf" visible="false"  partialTriggers="cb1"
                              inlineStyle="iframePDF"/>
    Well, when the page is initially loaded, the URLIframe methos is executes three time.
    When the button is clicked, method URLIframe_action is correctly executes only once:
        public String URLIframe_action() {
            this.if1.setVisible(true);
            return null;
    but #{backingBeanScope.extractoNotasBB.URLIframe} is again executed three times.
    The problem is that the url called by #{backingBeanScope.extractoNotasBB.URLIframe} have to be mandatory executed only once when clicking the button (which I think is also the expected behaviour)
    What can I do ?
    Thank you.

    If it is important to perform the URL calculation only once, you can move the calculation to the button's action listener. Then store the calculated URL in a view-scoped variable and make the IFrame's "source" attribute referepoint to this variable instead of to a backing bean method:
    public String URLIframe_action() {
      // Calculate the URL and store it in a view-scoped variable
      String iframeURL = this.getURLFrame();
      AdfFacesContext fctx = AdfFacesContext.getCurrentInstance();
      fctx.getViewScope().put("iframeURL", iframeURL);
      if1.setVisible(true);
      return null;
    <af:inlineFrame binding="#{backingBeanScope.extractoNotasBB.if1}"
                    source="#{viewScope['iframeURL']}"
                    shortDesc="Listado pdf" visible="false" partialTriggers="cb1"/>
    Dimitar
    P.S. It is better to use the "actionListener" attribute of the command button instead of the "action" attribute since you are not going to navigate anywhere. Also it is better to use "rendered" attribute of <af:inlineFrame> instead of "visible", because if you use "visible" the IFrame's rendition is always prepared (even if it is not being displayed), which is unnecessary overhead. The example below has added a "Hide Frame" button and has made everything declaratively:
    <af:commandButton id="cb1" text="Show Frame" partialSubmit="true">
      <af:setPropertyListener from="#{backingBeanScope.extractNotasBB.URLIframe}" to="#{viewScope['iframeURL']}" type="action"/>
    </af:commandButton>
    <af:commandButton id="cb2" text="Hide Frame" partialSubmit="true">
      <af:setPropertyListener from="#{null}" to="#{viewScope['iframeURL']}" type="action"/>
    </af:commandButton>
    <af:panelGroupLayout partialTriggers="cb1 cb2">
      <af:inlineFrame source="#{viewScope['iframeURL']}" rendered="#{viewScope['iframeURL']!=null}"/>
    </af:panelGroupLayout>

  • How to access Parent page UIComponent from inlineFrame using ADF javascript

    Hi,
    My application includes an <af:inlineFrame component on the top portion of the page. It contains a table with delete option for the end user. Requirement is after user has deleted all the records of the table and table has no records to display, inlineFrame needs to be made invisible so that the bottom portion content of my page will get stretched fully and has more visibility to the user. Hence when user click on Delete button of the table, after delete operation, I am planning to check the row count and write javascript to client using ExtendedRenderKitService to make the inlineframe invisible.
    Question:
    1. What is the right ADF javascript API to access the parent page and work with its components. I came to know we can call using 'parent.document.getElementById' but I want to know correct ADF's javascript API.
    Thanks in Advance
    Raghu

    The way you suggested didn't help me.
    Yes.. This inlineFrame content is also a part of the same application only. The reason why it is kept in inlineFrame is it is an ADS implemented table. ADS is able to push the data to the table provided we should keep the application idle. If I keep on working with the application (i.e. request/response happens because user works with the bottom portion content of the page), ADS is not able to push the data to UI. Keeping the ADS implemented table in a top portion still but inside an inlineFrame has solved this problem.
    Given below my page design
       main.jspx
       ======
       <af:form id="f1"....
           <af:inlineframe source="faces/page/employee.jspx" />
       </form>
       employee.jspx
       =========
       <af:form id="f2"
        </form>
                 In the employee.jspx only I have delete button and javascript which is suppose to find the parent page (i.e. main.jspx) and to work with inlineframe component to make it visible/invisible based on whether table gets records or no records. (This javascript call will happen with the help of ClientListener set for the ADS implemented table with event type as propertyChange) Intention is to check the row count of the table during every javascript call and to go to parent page, find the inlineframe, make it visible or invisible.
    Edited by: Raguraman on 25-Jan-2013 08:59

Maybe you are looking for