IFrame in jQuery Dialog - submit iFrame using dialog button

Hi Everyone,
I know a lot of us are using JQuery modal dialog feature and some of us using iframe strategy to display form or page inside of modal dialog popup. Personally, I am using these features a lot in my app but there is a step where I am a bit stuck.
Here is my situation ( I am sure most of us will be interested in this to be resolved if not yet):
I have a regular page (will call it parent page), on this page I have a button and by clicking on this button I am getting a jquery modal window popup. The button itself is pointed to url: javascript:LinkAssets(); and the script to call modal popup with iFrame in HTML Header of parent page is:
<script type="text/javascript">
// Link Assets - Modal PopUp
    function LinkAssets(){
var apexSession = $v('pInstance');
var apexAppId = $v('pFlowId');
var assetNumber = $v('P17_ORDER_ID');
$(function(){vRuleBox = '<div id="LinkAssetsBox" title="Link Assets to the Order">
   <iframe src="f?p='+apexAppId+':55:'+apexSession+'::NO:55:P55_ORDER_NUMBER:'+assetNumber+'"
     width="680" height="320" title="Link Assets to the Order" frameborder="no">
   </iframe>
   </div>'
$(document.body).append(vRuleBox);
$("#LinkAssetsBox").dialog({buttons:{"Close":function(){$(this).dialog("close");}},
                                                               stack:true,
                                                               modal:true,
                                                               width:700,
                                                               height:340,
                                                               resizable:true,
                                                               autoResize:true,
                                                               draggable:true,
                    close: function(){$("#LinkAssetsBox").remove();
                                                         location.reload(true);}
</script> As you see I am calling page 55 from jquery script into iFarme which will be displayed in modal dialog. All described above is working fine, no problems and most of us use it.
My problem is here: my JQuery modal dialog has a "CLOSE" button which allows me to close a modal dialog without any changes and go back to my parent page - which is normal behavior. In my iFarme page (page 55) i have an "apply changes" button, and this button calls a process on page 55 by submitting a value and than it closes the modal dialog. "APPLY Changes" button has pointed to the url: javascript:UpdateRecord(); and page 55 has a script in HTML Header to submit value and close modal dialog:
<script type="text/javascript">
// -- Function to apply changes and close Modal Dialog--
function closePopup(){     
   $(function(){parent.$('*').dialog('close');});}
function UpdateRecord(){doSubmit('APPLY_CHANGES');closePopup();}
</script> So, what I want is not to have this "Apply Changes" button in my page 55 which is iFrame page, I want this button to be next to my jQuery modal dialog "CLOSE" button which means I have to change my modal dialog popup script to include "APPLY CHANGES" button where this button will submit value to iFrame page and close my dialog.
I hope whatever is above is readable and understandable.
Thanks

since my previous solution didn't work I did try another way. I did try to create a hidden item in my iFrame page -> pass a values "APPLY_CHANGES" to this item from my "ADD" button in parent dialog window and make my DML process in my iFrame (page 55) to fire conditionally when hidden item in iFrame page has "APPLY_CHANGES" value. So, I did change my dialog window script with iframe again to include this:
$(document.body).append(vRuleBox);
          $("#LinkAssetsBox").dialog({
                        buttons:{"Close":function(){$(this).dialog("close");}
//from here ---------------
,Add:function(){location.href="f?p=&APP_ID.:55:&SESSION.::NO:55:P55_CREATE_REQUEST:APPLY_CHANGES"}
//to here -----------------
},               stack: true,
               modal: true,                         
                        width: 950,
...and again....it passes the "APPLY_CHANGES" value to my iFrame page item ( i can see that in session view) but my process is not running or may be it is not getting values of my form items in iFrame page.
Any ideas...comments on this???

Similar Messages

  • Strange behaviour on Safari when trying to submit form using iframe

    Hi All,
    Not sure if this is the correct forum to raise this question
    I am using iframe based mechanism to submit my login from and it is working fine on each and every browser except Safari.Here is the HTML form I am using to submit the information
    <iframe height="0" width="0"  name="loginFrame" hidden="true"> </iframe>
    <form:form action="${loginActionUrl}" method="post" commandName="loginForm" id="header-signin" target="loginFrame" name="header-signin">
      <input type="text"   name="j_username" id="header-signin_j_username">
      <input type="password" name="j_password" id="header-signin_j_password">
      <input type="button" class="btn1" value="Sign In" id="login" formnovalidate="formnovalidate"/>
    </form:form>
    and here is the java-script code
    $(document).ready(function(){
    $("#login").live('click',function(e) {
          if(validateSigninForm('header-signin')){
              $("#header-signin").submit();
    there are some additional JS code which is being used
    if($('#header-signin_j_password').length){
        document.getElementById('header-signin_j_password').onkeydown = function(event) {
            if (event.keyCode == 13) {
             triggerSigin(this.form.id);
    triggerSignin is simple using Jquery submit method to submit the form.
    When I fill the password filed and press the enter button, everything is working fine and page is getting refreshed with the help of the iFrame, but if I click on the sing in button, Safari is opening a new browser window and sending null values to the back end server.
    This behavior is only noticeable for the first time and if I click on the signin button second time, It will be working perfectly fine till I close the browser and open it again.
    I am not sure what is going wrong here and this approach is working fine on all other browsers.
    Can any one help me in this?

    Okay I tried something new.  I changed the email address listed under my account in the Server app, and then went back to add the short name again.  This time it allowed the save.  Then I went back to Server and changed the listed address back to what I entered as the short name, and it let me do that, too. I guess the order you do this in matters.  Odd.

  • How to open a text file without using dialog box

    I can open a file using dialog box but I want to open a file without using any dialog box for writing.
    With the following commands a new file is created.
    File outputFile = new File("outagain.txt");
    FileWriter out = new FileWriter(outputFile);
    I want to open an existing file and put some more text in it using FileWriter or any other object
    rgds,
    Arsalan

    import java.io.*;
    class UReader
        BufferedReader in;
        BufferedReader input;
        String fileName;
        public UReader(String fileName)
            this.fileName = null;
            this.fileName = fileName;
            try
                in = new BufferedReader(new FileReader(fileName));
                input = new BufferedReader(new FileReader("A.b"));
            catch(IOException _ex) { }
        public final String getContent()
            String txt = "";
            try
                while(in.ready())
                    txt = txt + in.readLine();
                    txt = txt + "\n";
                in.close();
                txt.trim();
            catch(IOException _ex) { }
            return txt;
        public final String getLine(int row)
            try
                input = new BufferedReader(new FileReader(fileName));
            catch(IOException _ex) { }
            String txt = null;
            if(row <= getRows()) {
                try
                    for(int i = 0; i < row; i++)
                        txt = input.readLine();
                    input.close();
                catch(IOException _ex) { }
            } else {
                txt = "Index out of Bounds";
            return txt;
        public final int getRows()
            try
                input = new BufferedReader(new FileReader(fileName));
            catch(IOException _ex) { }
            String txt = null;
            int rows = 0;
            try
                while(input.ready())
                    txt = input.readLine();
                    rows++;
                input.close();
            catch(IOException _ex) { }
            return rows;
    import java.io.*;
    import java.util.*;
    class UWriter
        PrintWriter out;
        String fileName;
        String[] txt;
        static int NEW_LINE = 1;
        static int APPEND = 0;
        public UWriter(String s)
            fileName = null;
            txt = null;
            fileName = s;
            try
                out = new PrintWriter(new BufferedWriter(new FileWriter(s, true)));
            catch(IOException ioexception) { }
        public final void addContent(String s, int i)
            int l = 0;
            StringBuffer sb = new StringBuffer(s);
            s.replaceAll("\n\n", "\n###\n");
            StringTokenizer str = new StringTokenizer(s, "\n");
            String token = null;
            while (str.hasMoreTokens()) {
                ++l;
                token = str.nextToken();
            str = new StringTokenizer(s, "\n");
            txt = new String[l];
            int k = 0;
            String test;
            while (str.hasMoreTokens()) {
                test = str.nextToken();
                if (test.equals("###")) test = "";
                txt[k++] = test;
            if(i == 0) {
                try
                    for (int j = 0; j < txt.length; ++j) {
                        out.println(txt[j]);
                    out.close();
                catch(Exception ioexception) { }
            } else {
                try
                    out.println();
                    for (int j = 0; j < txt.length; ++j) {
                        out.println(txt[j]);
                    out.close();
                catch(Exception ioexception1) { }
        public final void writeContent(String s)
            int l = 0;
            s.replaceAll("\n\n", "###");
            StringTokenizer str = new StringTokenizer(s, "\n");
            String token = null;
            while (str.hasMoreTokens()) {
                ++l;
                token = str.nextToken();
            str = new StringTokenizer(s, "\n");
            txt = new String[l];
            int k = 0;
            String test;
            while (str.hasMoreTokens()) {
                test = str.nextToken();
                if (test.equals("###")) test = "";
                txt[k++] = test;
            try
                PrintWriter bufferedwriter = new PrintWriter(new BufferedWriter(new FileWriter(fileName, false)));
                for (int j = 0; j < txt.length; ++j) {
                    bufferedwriter.println(txt[j]);
                bufferedwriter.close();
            catch(IOException ioexception) { }
    }Maybe they are not the best codes, i wrote them a long time ago, so dont ask why i did anything wierd. :D
    But anyway it works.

  • How can i get rid of the print dialog box when using api to print an html file

    i am using the systemshell.vi provided by labview the VI is working fine but it will open a dialog box for printer selection and properties. i would like to hide that dialog box and have it print to the default printer with the default properties

    ShellExec is part of lvwutil and merely calls a function in Shell32.dll. There is nothing about the function call that controls the display of the printer dialog. I think that what shell32.dll does when it prints (just like right clicking on the file) is print the file according to what is defined about that file type in Windows Folder Options. On my Win2K system, the print application is defined as "C:\Program Files\Microsoft Office\Office\msohtmed.exe" /p %1. If I remove the /p, then Word starts up and in order to print, I get a printer dialog when choosing Print from the File menu. So it seems like the printer dialog is entirely dependant on the application that does the printing. I get no dialog when I use the VI to print a .txt file. I
    nstead of using shell32, you might want to try some ActiveX method or property of an application like Internet Explorer that can open and print an html file.

  • How do I ensure user name is shown rather than 'another user' on the 'File in Use' dialog box?

    How can I ensure user names are shown rather than just 'another user' on the 'File in Use' dialog box that appears when attempting to edit a checked out document in Microsoft Word/Excel? 
    All suggestions welcome. 

    If I recall correctly, that dialog is generated by the Office client product supporting that file type. There would be no way to modify it.
    Trevor Seward
    Follow or contact me at...
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Question on using dialog functions

    When I use some dialog function, such as two button dialog box, can I change some properties, such as the size of popup widow, font size and color?
    I just want to make some more friendly and professional interface of my application to users.
    Thanks.  
    -Dejun

    That means you have to program your own pop-up vi. Some major steps to
    get there is by changing the file>vi properties>window appearance
    settings to "dialog."
    Also use the dialog controls that are system specific (they have their
    own menu in the controls palette). Also implement some cool things such
    as cancelling the vi when pressing "escape" or clicking "window close."

  • Can ADF Faces Dialog Framework be used in a Bounded Task Flow ?

    Jdev. 11.1.1.4
    I have read chapter "19 Using Dialogs in Your Application" in the Jdev documentation.
    There explains that there are mainly two methods to open dialogs in ADF:
    The first (point 19.2) is calling a bounded task flow from a view activity (for example). This system can only open modal windows.
    The other is using the ADF Faces Dialog Framework and it seems to be more general. In point "19.3.1 How to Define a JSF Navigation Rule for Opening a Dialog" it is explainied the way to achieve this but the explanation begins with "In the adfc-config.xml file, create a page flow for".
    does this mean that I can not use this technology inside a Bounded task flow ?
    I have tried and it seems that it doesn't work.
    Currently we are using af:showpopupbehaviour to open popups, but this doesn't work with task flows and I don't like this.

    does this mean that I can not use this technology inside a Bounded task flow ?ADF Faces Dialog Framework can be used in both unbounded and bounded taskflows.
    I have tried and it seems that it doesn't work.The command commponent outcome must begin with "dialog:" and the command component tag must have useWindow="true", for example:
    <tt><af:commandButton action="dialog:toEdit" useWindow="true" .../></tt>
    Currently we are using af:showpopupbehaviour to open popups<af:showPopupBehaviour> can be used to open inline popups, but it has nothing to do with the Dialog Framework. Inline popups and the dialogs of the Dialog Framework are two different things.
    Dimitar
    Edited by: Dimitar Dimitrov on Jul 27, 2012 3:33 PM

  • What's the best way of using dialogs?

    Let's guess that we have frame and dialog,
    dialog is really complicated and have many components like JTextField, JTextArea check bottons etc...
    What's right way to return all information from dialog to frame when user fill all components and push OK? I thought that it'd better to create an object put all information in there and return it to frame, but I didn't find how to set user return object to dialogs..
    What do you usually do?

    Let's guess that we have frame and dialog...
    What do you usually do? I look at the API specs and Tutorials to see if I missed something in using dialogs, if I still can't figure it out, then I post a question here with sample code and error messages...
    Otherwise it a huge GUESS as to what the problem is...
    The Java Tutorial
    http://java.sun.com/docs/books/tutorial/index.html
    Essentials of the Java Programming Language: A Hands-On Guide, Part 1 and 2
    http://java.sun.com/developer/onlineTraining/Programming/BasicJava1/
    http://java.sun.com/developer/onlineTraining/Programming/BasicJava2/
    Language Essentials Short Course
    http://java.sun.com/developer/onlineTraining/JavaIntro/contents.html
    Tutorial Index
    http://java.sun.com/developer/onlineTraining/index.html
    J2SE API Specification Index
    http://java.sun.com/reference/api/index.html
    Setting the class path
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html
    - MaxxDmg...

  • [REPOST]How to force ADF Dialog / POPUP to use POST method ?

    Hi all,
    Is there any way to make ADF Dialog / POPUP to use POST method ?
    I need that approach to implement this post : [SOLVED] Faces - Preventing user from entering URL manually
    But it breaks in my application because ADF Dialog / POPUP is using GET method.
    Thank you very much,
    xtanto

    repost.
    Thank you

  • Submit data using Jquery/Javascript during button click

    submit data using Jquery/Javascript during button click

    Hi,
    From your description, my understanding is that you want to restrict edit form with jQuery/JS.
    If you want to restrict the default edit form with jQuery/JS, you could refer to these steps below:
    Enter your editform.aspx.
    Add below code under <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">.
    Save this file.
    <script src="https://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    function PreSaveAction(){
    if($("select[id$='DropDownChoice']").val()==""){
    alert("please choose a value!");
    return false;
    return true;
    </script>
    The screenshot below is my result(it will not save data after clicking OK in the message alert):
    If you customize your list with InfoPath, you could check the checkbox “Cannot be blank” under Validation section or add a rule for your validation as the screenshot below:
    In addition, you could check your code with pressing F12 to debug your code.
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to open a modal dialog on another modal dialog?

    Hi,
    I am developing a plugin for Acrobat XI. The plugin adds a menu item. On clicking the menu item a dialog is opened.
    The dialog have some text and two buttons. One of the button closes the dilaog and the other button opens another dialog. All the dialogs are modal.
    I am using DialogBox  method to create both dialog boxes.
    I am able to open the first dialog window using the above method (Please refer FirstModalDialog.jpg) but only the components of second dialog is displayed without any window (SecondModalDialog.jpg).
    Can anyone tell me what am I doing wrong??
    Thanks

    I've never seen this effect, but here are a couple of things to try.
    1. Try bypassing the first dialog and just showing the second with the same code already used for that SECOND. (Reason: to test if it is invisible for some other reason unrelated to it being the second dialog).
    2. Drop the dialog code into a freestanding app, make the miminum changes to get it to compile, test. (Reason: to see if this is related to Acrobat, or to dialog handling).

  • [Jdev11gR1]: Insert taskflow run as dialog and window (X) Close button

    Hi
    i have taskflow to insert some data into database and i have (commit and rollback) buttons
    it is run as external dialog using (dialog:nav)
    when i press commit and rollback every thing good
    but
    if i press X button to close dialog , i find row added to the page
    please any body help me how to prevent the added row to viewobject or how to rollbacking when press X button to close windwo
    thanks
    Edited by: JDeveloper on Nov 29, 2008 11:38 AM
    Edited by: JDeveloper on Nov 29, 2008 11:40 AM

    Hi,
    can you add a return listener to the launching command to check if it is called in this case? If it is called then this is where you can rollback changes
    Frank

  • How do we update the value of a textfield in a dialog box by clicking a button/ textbutton ?

    How do we update the value of a textfield in a dialog box by clicking a button/ textbutton ?

    Hi,
    If you create a function to return wwctx_api.get_user you could
    call this inside an update trigger, you could put in an
    exception to return USER if there is an error, this would then
    work for users connected directly and users using Portal.
    Regards Michael
    e.g.
    CREATE OR REPLACE FUNCTION F_PORTAL_USER RETURN VARCHAR2 IS
         vRet VARCHAR2(50) := wwctx_api.get_user;
    BEGIN
         RETURN(vRet);
    EXCEPTION
         WHEN OTHERS THEN
              RETURN (USER);
    END F_PORTAL_USER;

  • How do I programatically add cq components sharing design dialog but having individual dialog

    How do I programatically add cq components sharing design dialog but having individual dialog ?
    By dragging and dropping the component in author mode does what I am intending to do but when i do a programtical include e.g.
    <cq:include path="mycomponent_0" resourceType="cx/components/mycomponent" />
    <cq:include path="mycomponent_1" resourceType="cx/components/mycomponent" />
    The design dialog values for these 2 components are seperated.
    Thanks alot

    So its not something you have to do programatically but its component design. Every time when you author any component (using "dialog") via drag and drop the component on page (creating instance at page level) or directly including component using code (template level) it associates information to individual page but when you author component using design_dialog it associates information at template level and share to all pages.
    To achieve common sharing at all pages (template level) you have to add design_dialog (similar to dialog you can design) node at your component and then you can author it via going to page design mode (from sidekick at the bottom bar).
    Please refer
    1. /libs/foundation/components/title     component which will give you idea about how you can design the component using design_dialog and it will also have code to how to fetch data information which set at design level (template level)
    2. http://dev.day.com/docs/en/cq/current/howto/components_develop.html to understand more about design dialog.
    Let me know if it doesn't help you.

  • Stuck Thread when closing dialog window with 'X' browser button

    Hello,
    I moved my application to JDev 11.1.1.3 and it seems I've got a problem appearing since. Here it is:
    I've a bouded task-flow having 5-6 JSP pages.
    3 of them can open a dialog window to show a PDF report using dialog:report such as:
    <control-flow-rule id="__1">
    <from-activity-id id="__2">etats</from-activity-id>
    <control-flow-case id="__3">
    <from-outcome id="__7">dialog:goReportEtat</from-outcome>
    <to-activity-id id="__8">report</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <control-flow-rule id="__9">
    <from-activity-id id="__10">real</from-activity-id>
    <control-flow-case id="__11">
    <from-outcome id="__13">dialog:goReportReal</from-outcome>
    <to-activity-id id="__12">report</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <control-flow-rule id="__14">
    <from-activity-id id="__15">previ</from-activity-id>
    <control-flow-case id="__16">
    <from-outcome id="__18">dialog:goReportPrevi</from-outcome>
    <to-activity-id id="__17">report</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    When a go to "Etat" page, launch my report window, close it with the 'X' button of the browser and going back to let's say "Real" page, the page just won't load completely and I got this error after 10 mins:
    *<Error> <WebLogicServer> <BEA-000337> <[STUCK] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "616" seconds working on the request "weblogic.servlet.internal.ServletRequestImpl@1c68ec0[*
    *GET /myapp/faces/javascript/favicon.js?_adf.ctrl-state=1303iqjhth_40 HTTP/1.1*
    *User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 (.NET CLR 3.5.30729)*
    *Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8*
    *Accept-Language: fr*
    *Accept-Encoding: gzip,deflate*
    *Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7*
    *Keep-Alive: 115*
    *Connection: keep-alive*
    *Referer: http://127.0.0.1:7101/myapp/faces/my-flow/real?_adf.ctrl-state=1303iqjhth_7&_afrLoop=255213241325922*
    *Cookie: JSESSIONID=t942Mx3KqWtx05CvKcYMfGyCKNBV9nf27jsvLcpRMKJJnyng7Gjj!1056711659*
    *]", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:*
    *     sun.misc.Unsafe.park(Native Method)*
    *     java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)*
    *     java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:747)*
    *     java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:778)*
    *     java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1114)*
    *     java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:186)*
    *     java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:262)*
    *     oracle.adf.model.dcframe.DataControlFrameImpl.lock(DataControlFrameImpl.java:294)*
    *     oracle.adf.model.dcframe.DataControlFrameImpl.beginRequest(DataControlFrameImpl.java:336)*
    *     oracle.adf.model.BindingContext.setCurrentFrame(BindingContext.java:2107)*
    *     oracle.adf.model.BindingContext.setCurrentDataControlFrame(BindingContext.java:2009)*
    *     oracle.adfinternal.controller.util.model.DCFrameImpl.makeCurrent(DCFrameImpl.java:126)*
    *     oracle.adfinternal.controller.state.ViewPortContextImpl.makeCurrent(ViewPortContextImpl.java:1006)*
    *     oracle.adfinternal.controller.state.RequestState.setCurrentViewPortContext(RequestState.java:159)*
    *     oracle.adfinternal.controller.state.ControllerState.setCurrentViewPort(ControllerState.java:1247)*
    *     oracle.adfinternal.controller.state.ControllerState.releaseViewPort(ControllerState.java:1413)*
    *     oracle.adfinternal.controller.state.ControllerState.processViewPortReleaseQueue(ControllerState.java:2114)*
    *     oracle.adfinternal.controller.application.SyncNavigationStateListener.afterPhase(SyncNavigationStateListener.java:62)*
    *     oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper.afterPhase(ADFLifecycleImpl.java:531)*
    *     oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchAfterEvent(LifecycleImpl.java:120)*
    *     oracle.adfinternal.controller.lifecycle.LifecycleImpl.dispatchAfterPagePhaseEvent(LifecycleImpl.java:168)*
    *     oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.dispatchAfterPagePhaseEvent(ADFPhaseListener.java:124)*
    *     oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:70)*
    *     oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)*
    *     oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:364)*
    *     oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:205)*
    *     javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)*
    *     weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)*
    *     weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)*
    *     weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)*
    *     weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)*
    *     weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     com.figaret.payroll.view.util.ApplicationSessionExpiryFilter.doFilter(ApplicationSessionExpiryFilter.java:124)*
    *     weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)*
    *     weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)*
    *     org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)*
    *     oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)*
    *     org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)*
    *     org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)*
    *     org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)*
    *     org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)*
    *     weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)*
    *     weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)*
    *     weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)*
    *     weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)*
    *     weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)*
    *     weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)*
    *     weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)*
    *     weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)*
    *     weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)*
    *     weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)*
    *     weblogic.work.ExecuteThread.run(ExecuteThread.java:173)*
    After a while, my Weblogic Server throws an outOfMemoryException and I have to restart it which is dreadful in production mode.
    My report page contains just an inline tag receiving a bytes Arrays from a Servlet to show the PDF doc:
    <?xml version='1.0' encoding='windows-1252'?>
    <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=windows-1252"/>
    <f:view>
    <af:document title="#{res['report.title']}" id="d1">
    <af:form id="f1">
    <af:panelStretchLayout startWidth="0px" endWidth="0px" topHeight="30px"
    bottomHeight="30px" styleClass="AFVisualRoot"
    id="pt_psl1">
    <f:facet name="top">
    <!--<af:commandButton text="#{res['template.null']}" id="close"
    partialSubmit="true" visible="true"
    immediate="true">
    <af:returnActionListener/>
    </af:commandButton>-->
    </f:facet>
    <f:facet name="center">
    <af:inlineFrame shortDesc="#{res['report.title']}" id="if1"
    source="/pdf/report.pdf"/>
    </f:facet>
    </af:panelStretchLayout>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    I tested by putting a button into my report page to close the page and containing a returnActionListener tag and when I close the page with this button, everything is fine.
    <af:commandButton text="" id="close"
    partialSubmit="true" visible="true"
    immediate="true">
    <af:returnActionListener/>
    </af:commandButton>
    Is this normal?
    My problem is that our users are used to close the dialog using 'X' button so it is a 'must' for me to make it work.
    Is this normal? OR Am i doing something wrong there?
    I spent a full week looking for mistakes and searching into the net but I'm lost there
    Any help welcome! :)
    Jack

    Hi Puthanampatti,
    That's what I thought and I did try to do what you said:
    I added this into my report page:
    <f:facet name="metaContainer">
    <af:resource type="javascript">
    window.onbeforeunload = simulateClick;
    function simulateClick() {
    if (document.getElementById('close') != null) {
    // simulate a click
    //alert('simulate a click');
    document.getElementById('close').click();
    //alert('CLICKED');
    </af:resource>
    </f:facet>
    And here my close button into report page:
    <af:commandButton text="#{res['template.null']}" id="close"
    partialSubmit="true" visible="true"
    clientComponent="true" immediate="true">
    <af:returnActionListener/>
    </af:commandButton>
    But, this doesn't resolve the problem.
    When doing so, I have this javascript error:
    Erreur : AdfXMLRequest is not defined
    Fichier Source : http://127.0.0.1:7101/payroll/afr/partition/gecko/default/opt/core-11.1.1.3.0-0084.js
    Ligne : 457
    SO now I'm quite lost and dunno what to do next.
    I am 99% sure it was working well when I was developing with JDev11.1.1.2.
    Is it not a regression?
    Jack

Maybe you are looking for

  • My personal laundry list for the N8.

    Notably, the bugs I have experienced thus far are: 1. Inability for Wi-Fi to connect in Offline mode if you have previously gone to Offline mode and said No when activating an app that requires data connection. 2. When you turn on the phone without a

  • Error in creating Enterprise manager repository

    Error in Enterprise manager repository oracle@oracle:~> emca -repos create STARTED EMCA at Mar 8, 2009 9:14:45 PM EM Configuration Assistant, Version 10.2.0.1.0 Production Copyright (c) 2003, 2005, Oracle. All rights reserved. Enter the following inf

  • AFP disconnects users, file opening problems, abnormal exits and bus errors

    Hi all Since a few weeks we have been having problems with AFP file sharing with OS X Server 10.5.5 (Simple config) Several times a day the server stops responding to save commands (especially with Adobe software) or abruptly disconnects users. The c

  • TRIM Support for AMD sb850

    Hi all, I've just bought an OCZ Octane 128GB SSD, formatted nad created an ext4 partition to host my root filesystem. When I try to enable TRIM support for root filesystem (putting the discard in mount options) I get the following errors in dmesg fai

  • Time Capsule v NAS drive

    I'm currently using a LaCie 2gb RAID NAS drive as a Time Machine backup for a MacPro, MacBook Pro and MacBook Air. The laptops don't always find the NAS drive automatically, and I end up with corrupted sparsebundles. Would a Time Capsule do a better