Popup not closing not when you use the < af:fileDownloadActionListener >

Hi all

I use JDeveloper 11.1.1.4.

My scenario is,

I have a popup with < af:fileDownloadActionListener > component when the user clicks the download button, it fires the file download listiner and download the text document.

Download works fine, but after the download, I tried to close the popup, but I'm not able to close the pop-up window.  Is - this problem of file download listener?

My JSPX codes,

< af:commandButton text = "DwonLoadPopup" id = "cb2" >

< af:showPopupBehavior popupId = "p1" triggerType = 'action' / >

< / af:commandButton >

< af:popup id = "p1" >

< af:dialog id = resizing "pgl2" = "on" title = "Downloadpopup" >

< af:panelGroupLayout id = "pgl3" >

< af:commandButton text = 'Download' id = "cb1" >

< af:fileDownloadActionListener method = "#{managedBean1.doDownload} '"

contentType = "application/octet-stream".

filename = "sample.txt" / >

< / af:commandButton >

< / af:panelGroupLayout >

< / af:dialog >

< / af:popup >

Java code:

' Public Sub doDownload (FacesContext facesContext, OutputStream, outputStream)

{

String data = "download my content."

Try

{

OutputStreamWriter writer = new OutputStreamWriter (outputStream, "UTF - 8");

Writer.Write (Data);

Writer.Close ();

outputStream.close ();

}

catch (IOException e)

{

e.printStackTrace ();

}

Pop RichPopup = (RichPopup) facesContext.getCurrentInstance () .getViewRoot () .findComponent ("p1");

pop. Cancel();

}

Thank you

David.

See if this helps: http://www.gebs.ro/blog/oracle/affiledownloadactionlistener-generate-export-and-close-popup/

Tags: Java

Similar Questions

  • Motion/opacity (yet) does not when you use the time remapping effect

    OK: Here's my meat. This bug has been around for CS3 and CS4. I was hoping this would be fixed with the arrival of CS5, but apparently it still has not been resolved.

    If you use the time remapping effect in the body, you can not use the other features of keyframing, such as movement or opacity. If you do, the video simply disappears. Rendering will not help either. The only way to get the opacity of the function is to overlay a video black bar on the top of the element (or any other cache of color if you like fantasy) and have the opacity on this clip in reverse work. How to get movement in these clips remapped time to work is still somewhat a mystery to me...

    Has anyone found this tedious, boring/irritating?

    So, when can dear Adobe, we expect a fix for this? If all goes well before CS6.

    Thank you very much.

    Richard

    Yes, it's a real annoying bug.
    Simple around - after work you time-remapping your clips, nest (control-click on the clip and select 'nest'), then you can change the opacity normally.

  • Z500 touchpad work not when you use the keyboard. Please help me please!

    Hello

    I recently bought a lenovo z500 and it's great, but I have a little problem. When I use the keyboard to play games (I use the WASD keys) the touchpad does not, which means I can't play. Help, please!

    I got it finally started working by removing the pilot of the momentum. I don't think that I will reinstall it. Thanks for your help

  • speakers work not when you use the external monitor

    I use a laptop HP Envy and HP Pavilion 25bw external moniter connected via an HDMI cable. With the help of Windows 8.1. The sound is muted when the laptop lid is closed. If I open the lid I hear for about 2 seconds, then it turns off. If I remove the HDMI cable, the sound lights. How can I get the sound to work with the connected 25bw and close the lid?

    Hello

    Please try to hell sound HDMI playback devices

    Right click on the speaker icon,

    Select playback device

    Click with the right button on HDMI sound

    Disable it.

    Kind regards.

  • Digital background color works do not when you use the reference

    Hello

    I am trying to use a reference to change the background color of a digital indicator in a Subvi.  The sub - VI strives to change a digital indicator, but when I use a reference to another (reference Numeric.vi) VI, instead of doing all the background, the color I want, only the outline is the color I want, with the rest in white (natural color).    Is there a way to avoid this?

    You must use the NumericText.TextColors.BG property instead.

    Felix

  • Firefox redirecting not when you use the script Window.Print

    Have a simple java script on a Web page to display the print dialog box before the redirection to another page.

    < a onclick = "javascript:window.print()" href ="Screen.php" > print, and continue < /a > "

    When the print dialog box will appear if you print it does not redirect but remains on the page. If you cancel printing, it will go ahead and redirect to where it is supposed to go. Worked fine before the last update I was wondering if there was a work around for this or if anyone was aware of this.

    The inconsistency is confusing. If you change your onclick to the following code, you can see a difference of synchronization in the appearance of the confirm dialog box which may be related to the problem. Maybe printing went from synchronous to asynchronous and now the navigation is attempted at a time when it is not allowed?

    onclick="window.print(); if(!confirm('Finished printing?')) return false;"

  • Œuvres SQL query to MS SQL Server 2008, but not when you use the database kit

    I have this SQL query:

    DECLARE TABLE (@DataTypeTable)
    Name varchar (128).
    TypeID INT)

    -Add comma delimeted type data in the temporary table names
    INSERT INTO @DataTypeTable (name)
    SELECT * from WhatWeShouldDoRead.func_Split (@DataTypeTrimmed, ',')

    SELECT the name OF @DataTypeTable

    That takes a comma delimited by the string and returns the string as a table.  It works correctly in Microsoft SQL Server Management Studio.  When I run this as a stored procedure I return nothing.  There are no errors, SQL or otherwise.  I checked that I am connected to the correct database and the stored procedure is responsible without changing any error chain which is reported of this stored procedure (that code is not shown in the example above).  Has anyone seen this problem before, or have experience with SQL/Labview interfaces to tell me what I am doing wrong?

    Thanks in advance.


  • image shows not when you use the element type image display

    Hi all

    My table has a blob column containing images

    However, they are not displayed

    I have a type of image screen called P6_DISPLAY_IMAGE, its source is a db column called PRODUCT_IMAGE

    I think I did everything correctly

    Please take a look at apex.oracle.com:

    workspace: martijnke

    login/password: demo/demo

    application: 78396 test voor Bernd

    page: 6 (just click on the products in the menu bar and click on the first column)

    as you can see, the display of the image (bottom) remains empty

    any help would be appreciated

    KR

    Martin

    Martijnke wrote:

    My table has a blob column containing images

    However, they are not displayed

    I have a type of image screen called P6_DISPLAY_IMAGE, its source is a db column called PRODUCT_IMAGE

    I think I did everything correctly

    Please take a look at apex.oracle.com:

    workspace: martijnke

    login/password: demo/demo

    application: 78396 test voor Bernd

    page: 6 (just click on the products in the menu bar and click on the first column)

    as you can see, the display of the image (bottom) remains empty

    Thanks for making the effort to demonstrate the problem.

    It seems to be nothing more complicated than missing data. Run this query showed that there is no data in the BLOB column for all rows:

    select product_id, product_name, dbms_lob.getlength(product_image) from apa$nf_products
    

    I downloaded an image of the product of the belt and it seems to work fine.

  • Firefox does not open after the update. Cannot open the profile technical, even when you use the directory in cmd line path

    I'm using Firefox on a Windows 7 computer. Firefox does not open after the last update. I read the help articles and it seems that I need to create a new profile because my settings were probably corrupted. I'm unable to open the profile technical, even when you use the directory in cmd line path. I tried the following commands in the command line:

    Firefox Pei
    "C:\Program Files (x 86) \Mozilla" PEI

    Nothing happens with every order.

    I am also running Norton Internet Security. I read a help of virtual navigation features Re article that can cause a problem. The article says to check the setting of virtualization in the internet security software and to clear the virtual cache. I went through all the menus of settings in Norton Internet Security version 21.6.0.32 and I don't see anything that looked like in "virtualization" settings, so I guess that does not apply to me. "

    If you have any ideas, I had appreaciate that your expertise!

    Hello arcandl, at the launch of the firefox is not after you double-click the shortcut, it is sometimes also a sign of active malware on a system.
    you might want to try running a scan with some various other security like the free version of malwarebytes and adwcleaner tools that are specialized to remove the adware and browser hijackers.

    Fix Firefox problems caused by malicious software

  • WHEN YOU USE THE CONSTRUCTOR OF MY SITE, I CAN'T COPY AND PASTE WROTE THE BROWSER SECURITY SETTINGS HOW TO NOT CHANGE THESE FOR ME TO COPY / PASTE?

    WHEN YOU USE THE CONSTRUCTOR OF MY SITE, I CAN'T COPY AND PASTE WROTE THE BROWSER SECURITY SETTINGS HOW TO NOT CHANGE THESE FOR ME TO COPY / PASTE?

    https://support.Mozilla.com/en-us/KB/granting+JavaScript+access+to+the+Clipboard

    This extension will help you implement the security policies for access to the Clipboard.

    Allow the extended Clipboard support:

    https://addons.Mozilla.org/en-us/Firefox/addon/852

  • Acer toggle display does not display when you use the Fn + F5 key secret on my Acer Aspire 5560

    What it does:

    When you use the Fn + F5 key combination on my Acer Aspire 5560, it brings up a screen changes on the laptop screen for the selection of an external monitor, I am currently using Windows 7 Ulitmate

    Before the problem:

    Display mode switch Acer existed prior to the upgrades of the drivers

    The problem:

    The toggle screen Acer does not display when you use the Fn + F5 key secret on my Acer Aspire 5560?

    Additon Information needed to solve the problem or any other information:

    I would like to know what driver or software operates the Acer toggle display Mode?

    Also where can I find this driver for computer: Acer Aspire 5560 to bring this Acer toggle display Mode function?

    Acer Toggle display Mode: this is a picture of it when you use the Fn + F5 combination:

    Thank you very much Ironfly Ace, it has worked Acer hero of the day

  • Why I get this message when you use the magnetic lasso tool: "WARNING: no pixel is selected to more than 50 percent."  The edges of the selection will be not visible. ?

    Why I get this message when you use the magnetic lasso tool: "WARNING: no pixel is selected to more than 50 percent."  The edges of the selection will be not visible. ?

    See here:

    WARNING: no pixel is selected more than 50%

  • When you use the tool of cash withdrawal, the sampled area does not appear.  I remember seeing this before - I've already had the updates of my LR5

    When you use the tool of cash withdrawal, the sampled area does not appear.  I remember seeing this before - I've already had the updates of my LR5

    Is - this balance?

    Press H.

  • When you use Internet Explorer, cannot save a PDF file.  Adobe Acrobat message "the document could not be saved.  Access denied"may be logged when you use the Google browser.

    When you use the browser Internet Explorer, PDF files saved cannont.  Message from Adobe Acrobat: "document not saved County. Access denied.  Same PDF can be saved when you use Google.

    Hello

    I use Adobe Acrobat 11.0.10 - Windows 7 - Office 2013 - Internet Explorer 11.  Compatibility according to the link is OK.

    Thank you

  • SpeedGrade CC14 does not open when you use the "Direct Link to Adobe SpeedGrade... "of PremierePro CC14.

    SpeedGrade CC14 does not open when you use the "Direct Link to Adobe SpeedGrade... "of PremierePro CC14.

    I can open the SG of start menu/desktop computer and I can open the PP project in SG very well. The PP project contains 3 deadlines and I take one I want without any problem. Returning to the SG PP works fine as well. It seems only thing doesn't work does not automatically open the PP file and selecting the correct timeline in the Official Journal of the project.

    I had a glance at the "C:\Users\john Bishop images\AppData\Roaming\Adobe\SpeedGrade\8.0\logs\SpeedGrade.log ' but it is not updated when I try to use the link Direct from PP. command It updated when I invoke the start menu/desktop computer SG. Note that none of the other newspaper, the files are updated either (Plugin Loading.log, Database.txt Trace and Debug Database.txt). All these get updated when I run the desktop/start. It would appear that SG is not yet known.

    I uninstalled the SG and the PP and re-installed (all in the directories by default) and everything seemed to go OK but no change.

    I also added 2 political profile the NVIDIA Control Panel, just display a message when loading SpeedGrade.exe and another for a slightly different message when loading SpeedGradeCmd.exe. SG invoking the desktop/start causes the SpeedGrade.exe message to display. Using the 'Direct link' PP file option does not display anything, reinforcing my thought that SG is just never called from PP.

    SP1 Windows 7 Professional 64 bit

    12 GB OF RAM

    2-Intel Xeon E5640 (16 sons) processors

    NVIDIA GeForce GTX580 1536 MB memory graphics

    PS... I used the Adobe cleaning tool noted elsewhere and tried NVIDIA workarounds as well - all to nothing does not.

    Problem solved!

    My Antivirus software was in the way. Once I have updated, things work fine.

    Thanks for your help!

Maybe you are looking for

  • Can I set parental controls on firefox for a specific user only?

    I use windows 7 and firefox 18.0.2. On my PC, I have my Admin account and my account of children. Now they arrive at an age that they are requiring Internet access for projects and so on, I wonder if I can put parental controls on firefox (by add-on?

  • Startup items lost and won't start not

    Hello! I used El Capitan 10.11.1 and everything was ok. Before moving to 10.11.2, I had 4 apps like startup items on my account: -Dropbox -Clean my mac 3 -Moom -Macs fan control After upgrading to 10.11.2, only of Dropbox is still to go. The behavior

  • Compaq Presario CQ60-514NR: Compaq Presario CQ60-514NR

    The HDMI port blocked on the Compaq Presario CQ60-514NR can be opened or it is unusable?  There's an hdmi port on this subject I would like to use to connect the computer to my new tv, but he has a piece of plastic molded on it.  Peut This be removed

  • Error on Outlook express. Also can only receive emails but unable to send them.

    Original title: outlook express Hello, I have outlook express and after I received my emails that I get the error message indicating, also I can not send e-mails only to receive them. Can any one help thanks Diane

  • BB10 - interaction with a childwindow

    Hi all I have a child with interaction with a window problem. I developed an application with phonegap (2.7.0) and I'm trying to make a paypal payment in my application. This requires to open a child window to display the connection at Paypal and aft