Problems of closing popup in filedownload actionlistener

Cannot close the popup after download the file

JSFF

< af:commandButton id = "cb2-generateKey.

Text = "#{msg.oauthCertOpGenKeyPair} '"

partialSubmit = "false" clientComponent = "true" >

< af:fileDownloadActionListener filename = "keyStore.p12" contentType = "application/x-pkcs12" method="#{viewScope.OAuthClients.generateKeyPairListener}"/ > "

< / af:commandButton >

Java

public void generateKeyPairListener (FacesContext context, OutputStream) out {}

downloadActionListener (context, outside, "keyStore", (String) this.getDnField () .getValue (), (String) this.getPwd () .getValue ());

this.closeGenerateKeyPop ();

}

Any ideas?

You can paste the code so that we can see what exactly you tried.

Another approach is to close the popup with javascript, similar to this: http://jneelmani.blogspot.com/2013/03/adf-11g-how-to-close-popup-using.html

Dario

Tags: Java

Similar Questions

  • Error: "Windows is busy. There will be problems if closed. I don't want to close anyway.

    Title: close research will not get messagebusy if close ddown will cause problems

    Windows will work not to close the get message windows is busy. There will be problems if closed. I don't want to stop anyway. Microsoft internet Explorer

    Thank you. I solved the problem by uninstalling and reinstaling research.

  • Problem with closing a PopUp window

    Hello

    I'll call you a pop-up of my page parent (Pg 41) via:

    JavaScript:popUp2('f?p=&APP_ID.:67:&session.:::P67_CORP_ID:&P41_CORP_ID.','800','420');

    and it works very well. I have a "Close" button on my page of popup, and the button property is redirect to the Page for this Application - Page 41. It also works, however, when you press the close button, it closes the popup page 67 and redirects to page 41 but on the INSIDE of the popup. So I have my parent page 41 still showing (full-size) and in the pop-up window, I also have page 41 (popup - and without any data size).

    Can you please help is to explain how close popup entirely and simply navigate to the calling page of the parent (full screen), 41?

    I am running 4 Apex.

    Thank you
    Laura

    Hi Laura,

    The button must have an action to 'Redirect to the URL' with a 'target URL' to:

    javascript:window.close();
    

    Andy

  • Closing popup workflow throws exceptions of serialization is not the managed beans.

    JDev 11.1.1.6

    When a popup that is launched from a work stream is closed, this exception is thrown for a lot of managed beans I set:

    [< SessionBasedScopeMap > < writeScopeMap > ADFc: scope objects serialization failed (no serializable object), scope='viewScope[/WEB-INF/get-value-rules-task-flow.xml#get-value-rules-task-flow@GetValueRules]', objectKey = 'GetValueRuleBean', 'com.mtg.fwd.view.beans.GetValueRuleBean' = objectType.

    < SessionBasedScopeMap > < writeScopeMap >

    java.io.NotSerializableException: com.mtg.fwd.view.beans.GetValueRuleBean

    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)

    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)

    at oracle.adfinternal.controller.util.Utils.verifySerializable(Utils.java:341)

    at oracle.adfinternal.controller.state.SessionBasedScopeMap.writeScopeMap(SessionBasedScopeMap.java:122)

    at oracle.adfinternal.controller.state.ViewScope.writeObject(ViewScope.java:90)

    ...

    Related Posts: ADFC-0619: check failure of popup by taskflow application approval

    I tried setting the scope of control of data in the workflow for the popup shared and isolated, the behavior is the same.  I thought that the scope must be insulated for the tf of the pop-up window.  The data-control-scope on the calling workflow shared.

    No idea why?

    Thanks - Rudy

    I don't know if you can disable registration points. However, I'd go for the second option to bind components to ask the beans reach max.

    This way you don't have problems later and it is best practice not to tie UI components to the higher bean then ask. You can adopt the UIManager (https://blogs.oracle.com/groundside/entry/the_uimanager_pattern) model.

    Or use ComponentReference as shown here https://blogs.oracle.com/ATEAM_WEBCENTER/entry/rules_and_best_practices_for

    Timo

  • Problem with validation popup function and af bean.

    I have the following code from the model:

    View1.JSPX contains a popup with 2 text entry. the text of entry has a custom validator (is not allowing the user to enter text containing 'A'):
    <?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>
        <af:document id="d1">
          <af:form id="f1">
          <af:commandButton text="Show Popup" id="cb1">
            <af:showPopupBehavior popupId="p1Adauga2"/>
          </af:commandButton>
          <af:popup id="p1Adauga2">
            <af:panelWindow id="pw2" title="Adauga entitate la lista">
              <af:panelGroupLayout id="pgl7" layout="horizontal" halign="center"
                                   valign="top">
                <af:panelFormLayout id="pfl1">
                  <af:inputText label="text1:"
                                maximumLength="10"
                                id="it11" 
                                rendered="true"
                                validator="#{TestBean.validateText1}"
                                autoSubmit="true">
                  </af:inputText>
                  <af:inputText label="text2:"
                                maximumLength="10"
                                id="it9"
                                rendered="true">
                  </af:inputText>
                </af:panelFormLayout>
                <af:spacer width="10" height="30" id="s7"/>
              </af:panelGroupLayout>
              <af:panelGroupLayout id="pgl8" layout="horizontal" valign="bottom"
                                   halign="center">
                <af:commandButton text="Add" id="cb11Adauga"/>
                <af:spacer width="10" height="30" id="s9"/>
              </af:panelGroupLayout>
            </af:panelWindow>
          </af:popup>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>
    The validation function is contained in a bean managed with a scope of application:
    import javax.faces.application.FacesMessage;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    
    public class TestBean {
        public TestBean() {
        }
    
        public void validateText1(FacesContext facesContext,
                                  UIComponent uIComponent, Object object) {
            String val = (String) object;
            if (val.contains("A")) {
              FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR, 
                                                      "Eroare", "Cannot contain A");
              facesContext.addMessage(uIComponent.getClientId(facesContext), 
                                      message);
              ((RichInputText)uIComponent).setValid(false);
            }
        }
    }
    My problem:

    1. I enter invalid text
    2. an error message is displayed, saying that that text I put in place is not valid.
    3. I press the Add - button the popup is closed. Why? The component is not valid. Shouldn't the blocked popup until all text entry are valid?

    How to achieve this.

    Please see the screenshot below, it better describes my problem:


    Published by: Andrei Ciobanu on 12 Aug 2011 06:16

    Published by: Andrei Ciobanu on 12 Aug 2011 06:19

    You should read the documentation of af: popup [http://download.oracle.com/docs/cd/E16162_01/apirefs.1112/e17491/tagdoc/af_popup.html url] and understand everything about auto-licenciement

  • Restart the problem after closing the lid of the laptop for a few minutes

    I use Windows 7 Home Premium on my Asus A53S. I have reboot issues a few minutes after closing the computer laptop lid eventhough I put what to do after closing the lid to "do nothing" for both on battery and the plug. And it will keep restarting over and over again. Rest

    Hi DennisHii,

    You did changes to the computer before the show?

    Method 1
    I suggest you perform the clean boot and check if the problem persists.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: Follow step 3 of section of boot KB929135 to reset the computer in normal mode.

    Method 2
    I suggest you try the steps from the following link:

    Windows 7 is not going to sleep
    http://support.Microsoft.com/kb/976877

    Hope this information is helpful and let us know if you need more assistance. We will be happy to help.

  • Transitional not erased after cancellation when closing popup

    Hello

    JDev 11.1.2.4

    I have a table with a transitional OS displays a checkbox to make a selection.

    The user selects some lines, click on a button that makes a Rollback, the selection is deleted as expected.

    In the second case, the user selects some lines and then opens a popup, does nothing, close it. The user clicks the restore button again, the selection is cleared.

    In the third case, the user selects a few lines then opens a popup, just commit (no data entry), close it. The user click again on the button restore, selection is NOT cleared. I checked the value of the transient, and it is true, then the user interface is in harmony with the model.

    It seems that a consecutive call commit and Rollback does not erase the transitory values. I know what to do a Commit followed by a restoration seems silly, but I'm trying to find the problem, I (transitional non cleared) in a more complex UI, and I noticed that the problem occurs in this case. It seems that the Rollback is not done because there is nothing to do. Is this why my transitional cannot be erased?

    Thank you

    Try adding the transitional attribute VO level instead of level OE

  • region of refresh on the page parent after closing popup inframe

    Hello

    I have parent page with several regions, and one of the reports is related popup to another page using inframe. All these are works fine but now iam trying to a parent region partially regenerate after closing the window contextual inframe, I tried apex.submit (region1) but it does not work? no idea how can I update this after the closure of the window popup?

    Best regards and thank you

    Hi Gor_Mahia,

    Gor_Mahia wrote:

    Here are the details,

    application ID = 46268

    page ID = 13

    demo123/demo123

    proj2010 = workspace

    Use the links in the second column IR

    Once again thanks for your time.

    Check your application now. The interactive report is refreshing on the closure of the modal dialog box using the method of dynamic, such action described in the blog post:

    Monkey on Oracle: Modal popup with dynamic Actions

    Here are the changes:

    • Edited your action dynamic and value:

    In the section "Advanced":

    Scope of the event: Dynamics

    In 'true Actions:

    Action edited your "run the Javascript Code" and "Code" to modified:

    From:

    /* prevent default behavior on click */
    var e = this.browserEvent;
    e.preventDefault();
    /* Trigger JQuery UI dialog */
    var horizontalPadding = 30;
    var verticalPadding = 30;
    $('