JSF error message: Automatic prompting for file download

This is a weird problem. I have a JSF application wherin I popup a new window on a submit button.
The window opens a test.jsf page that redirects the output to a servlet1.
Servlet then based on some parameters does a sendRedirectI() to different servlets out of context.
Now the issue is that when the output is redirected to out of context servlet, that returns a file download.
If in IE browser, if one does not do a setting of "Automatic prompting for file download", this window that I had opened on submit buttton vanishes in a jiffy. If the IE setting is done, it shows the file download correctly.
I would want to show the user some kind of message by which he/she understands that this IE setting has to be done.
I have tried several ways:
1. Javascript: window.onbeforeunload on the test.jsf so that when the window unloads i can show some message. But since test.jsf forwards to servlet1, the html page generated does not show my script.
2. I also tried checking if some windows registry can help me understand the setting.
3. I tried writing in response object the javascript and then redirecting it to servlet out of context. But I guess sendRedirect() does a new request, so this did not help.
Can anyone help? I am not sure if I am able to explain my problem correctly.
Yani

Here is the result.I used your code and it worked fine with IE setting Enabled. But when I tried to access the download servlet after opening a new window, it doesnt download the file.

Similar Messages

  • Automatic prompting for file download

    I am using a File Download Servlet. Theres a setting in IE under Securiy Settings --> Downloads--->Automatic Prompting for File Downloads.If I have this disabled, I am able to download the file.If its enabled, I am unable to download the file successfully. Anyone have faced this problem before?

    Here is the result.I used your code and it worked fine with IE setting Enabled. But when I tried to access the download servlet after opening a new window, it doesnt download the file.

  • Task License Validation Error Message/ Automatic Scheduling for Disk Defrag is not working.

    I saw where I could possibly ask you for answers to the problems that I am having with Windows 8.1 pro. First of all I noticed that my disk defragmentation task which was set on daily wasn't operating.  It indicated that the last time it ran all disks
    for disk defrag was back on 4/20 and on the this morning of 4/26 there was the date 4/20 for all the disks.  I went into the Administrator Tools section of Control Panel and found Schedule Tasks.  When I opened Schedule Tasks I got the
    error message that indicated a Task License Validation Error. It went on to read:The task XML contains a value which is incorrectly formatted or out of range.  This is my question...are the two related...the inoperative automatic maintenance of disk defrag
    and this error message from task scheduler?  And how do I address each issue to solution.   Thank you very much. 
    [email protected]

    The MSDN Windows and Windows Phone app development forums are for developers to discuss writing their own Windows and Windows Phone apps.
    For help using Windows please post on the Windows forums on
    http://answers.microsoft.com .

  • Java WebDynpro's and IE security settings for file download

    We have a EP 7.0 SP13 environment on which we have deployed a number of own developed java webdynpro's. In some of these webdynpro's we provide the file download functionality. The portal and webdynpro's are used by both internal personnel and external customers.
    On the other hand the default Internet security settings for Internet Explorer, disable "Automatic prompting for file downloads".
    When a user, with these default security settings active, tries to use our webdynpro's file download functionality, the screen seems to refreshes but no file download starts. When (s)he retries, the session runs for some minutes and gives following error message:
    "com.sap.tc.webdynpro.services.session.LockException: Thread SAPEngine_Application_Thread[impl:3]_20 failed to acquire exclusive lock on client session ClientSession".
    This behavior is explained in SAPNote 1234847. Webdynpro provides a single-thread module, meaning a user session is blocked for the during of the request. And because the previous file download isn't yet completed the new try can't start.
    Issue now, although the users IE settings allow file downloads and don't block pop up's, he can't download the file and even isn't made aware of the cause of the failure.
    How can we avoid this issue, without having to communicate the
    application requires specific browser settings?

    Welcome to the Apple Support Communities
    See > http://support.apple.com/kb/HT5290
    You can install the program using different ways:
    1. Right-click the application installer and choose Open.
    2. Go to System Preferences > Security and Privacy and select Anywhere in Allow applications downloaded from

  • HT4059 I got an error message that I should connect to Wi-Fi after trying to download a Book Sample from the iBooks Store. I still get this error message even after I bought, downloaded, and transferred the file to my iPad's iBook thru iTunes. Wi-Fi ain't

    I got an error message that I should connect to Wi-Fi after trying to download a Book Sample from the iBooks Store. I still get this error message even after I bought, downloaded, and transferred the file to my iPad's iBook thru iTunes. Wi-Fi ain't cheap.

    Hi I had a similar issue to you, I could connect to the router but no internet. Here is my explanation of how I sorted it.....I hope this works for you.
    *To anyone that is reading this it appears that the problem lay in the airport setting: IPV6: set to 'Automatically'. I turned it off (after reading someones plight on MacFixIt) & everything is back to normal.*
    *The worrying thing is although my problem was extreme with other computers on the network being locked out nothing was changed, one minute it worked the next it didn't. Reading on other forums it appears to be a problem with laptops (but I could be mistaken). A lot of people on the Macfixit forum are complaining of network just dropping out even when they are next to the router.*
    *I hope this is the fix (although I dont know why it suddenly went to sh*t!) & I hope my hair pulling & trawling the forums can help someone else out.*
    Much Respect
    Lammo

  • Every time I try to download Firefox, I get an error message tha says the file is corrupt. How do I fix it?

    The file will download approximately 40% and then I get an error message that says the file is corrupt and the download window closes automatically. In addition, I have had this trouble with two separate computers using two different operating systems.

    Download a fresh Firefox copy and save the file to the <u>Desktop</u>.
    * Firefox 6.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Uninstall your current Firefox version.
    * Do not remove personal data when you uninstall the current version.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/Profile_backup

  • I am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me

    Dear ALL,
    i am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me solutions.
    var myBookFileName ,myBookFileName_temp;
                    if ( myFolder != null )
                            var myFiles = [];
                            var myAllFilesList = myFolder.getFiles("*.indd");    
                            for (var f = 0; f < myAllFilesList.length; f++)
                                        var myFile = myAllFilesList[f]; 
                                        myFiles.push(myFile);
                            if ( myFiles.length > 0 )
                                        myBookFileName = myFolder + "/"+ myFolder.name + ".indb";
                                        myBookFileName_temp=myFolder.name ;
                                        myBookFile = new File( myBookFileName );
                                        myBook = app.books.add( myBookFile );  
                                       myBook.automaticPagination = false;
                                        for ( i=0; i < myFiles.length; i++ )
                                                   myBook.bookContents.add( myFiles[i] );             
                                        var pdfFile =File(File(myFolder).fsName + "\\"+myBookFileName_temp+"_WEB.pdf");
                                        var bookComps = myBook.bookContents;
                                        if (bookComps.length === 1)
                                                       bookComps = [bookComps];
                                         var myPDFExportPreset = app.pdfExportPresets.item("AER6");
                                        app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFEx portPreset,bookComps);
                                      //myBook.exportFile (ExportFormat.pdfType, pdfFile, false);
                                      //myBook.exportFile(pdfFile, false, pdfPref, bookComps);
                                        myBook.close(SaveOptions.yes);      

    Change the below line:
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset,bookComps);
    to
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset);
    Vandy

  • How do I view downloaded content when the error message, not a supported file type or because the file has been damaged, shows up?

    I trying to download a book as a pdf to view through my adobe reader. But every time I do I keep getting the same error message saying that the file is not a supported file type or because the file has been damaged it can't be opened or viewed. What do I do and how do I get it to work. Because as of now I only have one option of downloading the book and I've tried to download the app notable pdf to see it that worked but it didn't either. As of right now I'm using google chrome but I also tried using Safari but it's still not working. I have a Mac with a Mac OS X updated system. I need an answer ASAP. Can anyone help me?

    I have the same issue.  Almost none of the PDFs I download from Safari browser can be opened. Same message about the file being damaged or not really a true PDF.  Neither of these are the issue here. Size of file is not an issue. I have Acrobat Reader XI so I believe that's pretty up to date.  If I open with Text Editor the file is blank.  any ideas?

  • HI, i'm having this error message [There was a problem downloading the software for the iphone "banster's iphone". An unknown error occurred (-23)] when im doing the upgrading to IOS 5. anybody know how to slove it? Thanks

    HI, i'm having this error message [There was a problem downloading the software for the iphone "banster's iphone". An unknown error occurred (-23)] when im doing the upgrading to IOS 5. anybody know how to slove it? Thanks

    Yep, me to exactly the same problem,  the error message keeps telling me to check my internet connection  or try later.  Nothing wrong with my internet connection.  Is it an apple server problem?

  • Am trying to update to 5.0 from 4.2.1 and keep getting an error message "There was a problem downloading for iphone.  The network timed out.  What do I do ?

    Am trying to update to 5.0 from 4.2.1 and keep getting an error message "There was a problem downloading for iphone.  The network timed out.  What do I do ?

    This is asked and answered many times each day.  The forum search bar is on the right side of this page.
    Disable your firewall/security software and try again.

  • I am trying to update to iOS5, but after the download completes, I get an error message "There was a problem downloading the software for my iPad2. The network connection timed out." Any suggestions?

    I am trying to update to iOS5 on my iPad 2, but after the download completes, and file processing starts, I get an error message "There was a problem downloading the software ... the network connection timed out."  Diagnostic tests check out OK.  Any suggestions?

    Temporarily disable your firewall and security software and see if that helps.

  • HT2041 I receive an error message when opening up a downloaded program as "Safari can't open the file because no availabel application can open it". Not sure what exactly this means or what I have to do!

    I receive an error message when opening up a downloaded program "safari can't open the file because no available application can open it" I am not sure what I need to do to get these programs open!

    What is the file?
    Where did you get it from?
    Allan

  • Had to wipe and reload my computer, am trying to download web premium 5.5 but when i try to open and install gives me an error message of trouble extracting file try downloading again. How can i download?

    Had to wipe and reload my computer, am trying to download web premium 5.5 but when i try to open and install gives me an error message of trouble extracting file try downloading again. How can i download?

    You can also download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    CS5.5: http://prodesigntools.com/adobe-cs5-5-direct-download-links.html

  • I have paid for a year subscription, but all the PDF's I attempt to export to Word give me a "Conversion Error" message, citing that the "file's security settings do not allow export." I want a refund. Adobe, please advise. Thank you.

    I have paid for a year subscription, but all the PDF's I attempt to export to Word give me a "Conversion Error" message, citing that the "file's security settings do not allow export." I want a refund. Adobe, please advise. Thank you.

    Hi la recruiter,
    There are a few types of files that Acrobat can't convert--and PDF files with security applied is one on them. I'm happy to cancel your subscription, if you decide that it's not going to work out for you. Please confirm that you'd like me to proceed with the cancelation, and I'll take care of it right away.
    Best,
    Sara

  • TS3694 I am trying to update my iPodtouch & keep getting this error message:  There was a problem downloading the software for the iPod.  The network connection timed out.  Make sure your network settings are correct and your network connection is active.

    I am trying to update my iPod touch & keep getting this error message:  There was a problem downloading the software for the iPod.  The network connection timed out.  Make sure your network settings are correct and your network connection is active.  Help!

    Temporarily disable or turn off your Firewall and Anti-Virus software and try the download again.

Maybe you are looking for