File Download links on ADF pages

Hi All, My requirement is to display no. of document links in pages. I am trying to use <af:fileDownloadActionListener> .
I am getting list of files/document while loading the page from backing bean and looping through it using <af:forEach>..
when i click on any link to download the document then fileDownloadBean.download function is called. So in backing function
download how i know which document user has clicked to download ? Any idea ?
<af:panelList id="pl1" clientComponent="true" >
<af:forEach var="file" items="#{fileDownloadBean.listFiles}" >
<af:commandLink text="#{file}" actionListener="#{fileDownloadBean.buttonClicked}" />
<af:commandLink text="#{file}" visible="false" id="cl2" actionListener="#{fileDownloadBean.buttonClicked}">
<af:fileDownloadActionListener filename="#{file}"
contentType="application/msword"
method="#{fileDownloadBean.download}" />
</af:commandLink>
</af:forEach>
</af:panelList>

Hi Tim, I tried to follow same step as mentioned in your blog..but getting y error no object found by id...
function customHandler(event){ 
var exportCmd = AdfPage.PAGE.findComponentByAbsoluteId("::cl2");
alert('hello');
var actionEvent = new AdfActionEvent(exportCmd);
actionEvent.forceFullSubmit();
actionEvent.noResponseExpected();
actionEvent.queue();
In my program commandlink is rendering by for each loop...i think in for each loop...iterating component does not assign proper ids...
<af:panelList id="pl1" clientComponent="true" >
<af:forEach var="file" items="#{fileDownloadBean.listFiles}" >
<af:commandLink text="#{file}" clientComponent="true" partialSubmit="true" actionListener="#{fileDownloadBean.buttonClicked}" />
<af:commandButton text="#{file}" id="cl2" visible="false" clientComponent="true" >
<af:fileDownloadActionListener filename="#{file}"
contentType="application/msword"
method="#{fileDownloadBean.download}" />
</af:commandButton>
</af:forEach>
</af:panelList>
I appreciate your help..
Thanks

Similar Messages

  • OrcDocDomain File Download Link - (BC4J/ADF) - How to?

    I am able to produce an Upload File in my web application - it works really nicely - , but I am lost on how to produce a download link for those files, once they are stored in the database.
    I am creating an application that deals with document files for my company's intranet. I am using BC4J, ADF, the Oracle Database, and JDeveloper 10.1.3.2
    The files are stored in the oracle database as OrcDocDomain columns.
    As I mentioned at the beginning, I do am able to have my users to upload the files:
    I use the af:inputFile tag to upload the file into the desired jbo View Row. BC4J commits the file storage into the database the way I want it later:
    <af:inputFile value="#{bindings.WorkingDocumentsView1NewDocument.inputValue}"
    label="#{bindings.WorkingDocumentsView1NewDocument.label}"
    required="true"
    binding="#{backing_app_Working_Document.inputText3}"
    id="inputText3"
    inlineStyle="font-size:x-small;" />
    Sweet...
    However, my question now is that, I want my users to be able to download the same file...but I am lost trying to put together a solution for it.
    I have tried with <af:objectMedia source="#{bindings.DocOrd.Source}"/> but it does not work at all. (Please note that I can see that that there is a file in the binding variable DocOrd, because I can display it's mime type in the same web page).
    I have also seen a documentation reference to the class "DownloadFile" of JHeadStart. I think that this class does what I should pretend to do: to render a link/call to the Intermedia Servlet that would produce the download.
    However, I am not using JHeadStart to create my application.
    Does someone know how could I generate this link/call without JHeadStart?
    Thanks by anticipate.
    Rafael.

    Hi.
    I was wondering if anyone has any thoughts or suggestions on above issue please?

  • Creating a file download link on jsp

    I have the following on my jsp. The code worked fine until I tried to use it in a new html design page.
    <code>
    //page name is index.jsp
    try //DISPLAY THE CONTENTS OF THE DATA DIRECTORY
    File dirname = new File(PATH); // create an instance of the File class
    if (dirname.exists()&&dirname.isDirectory())//check to see if File class dirname exists and is valid
    String [] allfiles = dirname.list();//create an array of files in the dirname File class
              for (int i=0; i< allfiles.length; i+=2)//loop through allfiles[] and print out file links
    out.println("<br><table border='1' cellspacing='1' width='99%'>");
                   out.println("<tr><td width='50%' class='pageFont'><input type='checkbox' name='cb' value='"+allfiles[i]+"'>"+allfiles[i]+"      ");
    %>
    <a class="a" href="index.jsp?downfile=C:\\data\\<%=allfiles[i+1]%>">DOWNLOAD</a></td>
    <% if(i+1 < allfiles.length)//PRINTS OUT THE SECOND TD SO THAT WE HAVE 2 COLUMNS OF LINKS
    out.println("<td width='50%' class='pageFont'><input type='checkbox' name='cb' value='"+allfiles[i+1]+"'>"+allfiles[i+1]+"      ");
    %>
    <a class="a" href="index.jsp?downfile=C:\\data\\<%=allfiles[i+1]%>">DOWNLOAD</a></td></tr>
    <%
    out.println("</form></font></table>");
    catch (IOException excep)
         out.println("An IO exception has occured.");
    </code>
    Then when clicked this code is run:
    <code>
    try{
    //CHECK TO SEE IF THE FILE HAS BEEN CLICKED TO DOWNLOAD SINGLE FILE
    if (request.getParameter("downfile") != null)
    String filePath = request.getParameter("downfile");
    File f = new File(filePath);//CREATE AN INSTANCE OF THE FILE CLASS AND POINT IT TO THE LOCATION OF THE DIRECTORY CONTAINING THE FILES
    if (f.exists() && f.canRead())
    response.setContentType ("application/octet-stream");
    response.setHeader ("Content-Disposition", "attachment;filename=\""+f.getName()+"\"");
    response.setContentLength((int) f.length());
    BufferedInputStream fileInputStream = new BufferedInputStream(new FileInputStream(f));
    int i;
    out.clearBuffer();
    while ((i = fileInputStream.read()) != -1) out.write(i);
    fileInputStream.close();
    out.flush();
    </code>
    When I click on this link I get the download dialog box. If I open it I get the following open up in notepad(the files I am trying to give download links are .txt files)
    Below is what is displayed in notepad ALL on 1 line:
    <html>
    <head>
    <LINK rel="stylesheet" ty
    That is displayed in all of the links that I click on. It is the first few lines of html code for index.jsp.
    I know this code is probably not a good way of doing what I need but I got it to work fine until the change.
    I am sure there is an easier way to code the download link without resubmitting the page.
    Thanks in advance!!

    Well all was fine with this jsp until I moved it to ApacheJServ. Now the problem has resurfaced(although it is a little different now)
    I had moved the following code to the top of my page:
    //CHECK TO SEE IF EITHER DOWNFILE OR ZIPFILE VARIABLE EXIST, AND IF THEY DO SET CONTENT TYPE BEFORE SENDING ANY HTML CODE TO THE BROWSER
    try{
    //CHECK TO SEE IF THE FILE HAS BEEN CLICKED TO DOWNLOAD SINGLE FILE
        if (request.getParameter("downfile") != null)
                String filePath = request.getParameter("downfile");
                File f = new File(filePath);//CREATE AN INSTANCE OF THE FILE CLASS AND POINT IT TO THE LOCATION OF THE DIRECTORY CONTAINING THE FILES
                    if (f.exists() && f.canRead())
                        response.setContentType ("application/octet-stream");
                        response.setHeader ("Content-Disposition", "attachment;filename=\""+f.getName()+"\"");
                        response.setContentLength((int) f.length());
                        BufferedInputStream fileInputStream = new BufferedInputStream(new FileInputStream(f));
                        int i;
                        out.clearBuffer();
                        while ((i = fileInputStream.read()) != -1) out.write(i);
                            fileInputStream.close();
                            out.flush();
                            response.flushBuffer();
    catch (Exception e){}
    //This is where the java code ends and the javascript/html code begins.Then further into the page I create the file download links like so:
                            <a class="a" href="main.jsp?downfile=C:\\data\\<%=allfiles[i+1]%>">DOWNLOAD</a>I know this isnt a secure way of doing this but I am on a intranet.
    The problem I am having now is that when I click on one of the links and download the file and then open it, I get the contents of the file plus concatenated to the end of it is the first few HTML lines of the actual jsp that I downloaded the file from. Before I was just getting the first few lines of html from the jsp, not the actual contents of the downloaded file.
    This is an example of what I am getting:
    This is the contents of the file that I downloaded.//This is where the file contents ends.
    <html>
    <head>
    <LINK rel="stylesheet" type="text/css" href="default.css">
    <script language="JavaScript1.2">
    //function that allows user to select all checkboxes
    function doIt(v)
    for(var i=0;i<document.form1.cb.length;i++)
       document.form1.cb.checked=eval(v);
    function swap(imageName,image)
    imageName.src = "templateImages/"+image;
    function imageOver(imageSrc, imageName)
         changeImage = new Image();
         changeImage.src = imageSrc;
         document.images[imageName].src = changeImage.src;
    var hide = true;
    function hideShow( ) /
    Any morre ideas?
    TIA!
    BTW, I went to ApacheJServ because they wont let me use tomcat :(

  • Issue with File Download(messageDownload) on Search Page.

    Hi,
    I created a custom OAF search page which fetches values from one table. The document in getting stored in my custom table in a BLOB colums and NOT in FND_LOBS.
    The table has 3 collumns along with others:
    1st is primary key (Record_Seq) ==> number data type
    2nd to store actual file name (File1Name) ==> varcahar2 data type
    3rd to store the actual uploaded data (File1Data) ==> BLOB data type
    The reason for having the “File1Name” is so that I can display the original file name of the document that was uploaded, instead of just the “view” in the search page results .
    On the File1Data BLOB and created a messageDownload for that under query results table with following details:
    ID : File1Data
    ItemStyle : messageDownload
    FileMIME Type : pdf
    Datatype : BLOB
    View Instance : LacEmpExposureVO1
    view Attribute : File1Name
    File View Attribute : File1Data
    When I click on the "File1Name" data hyperlink, it is opening only the first document corresponding to the first record in the search page results.
    For example, If my search page returns 10 rows then when I click on the file1name on any row, It is open the first row file name only.
    I have a primary key column(RECORD_SEQ) in the Table / EO / VO which is displayed in the search page results.
    Also one weird thing is happening:
    If I try to do this more than 2 times then it is opening the update page with the first record from the search page results…
    I tried to print the context and it is nul the first time, But the second time then context is changing to "update". Dont know how this is happening????
    Any advice is greatly appreciated as it is very crucial for me to get this resolved ASAP. I have looked at several forums and did a lot of things as advised in the forums . But nothing seems to work for me.
    Thanks,
    Mir
    CO code for the search page
    ===========================
    if (pageContext.getParameter("Create")!= null)
    System.out.println("Into LacEmpExposureCO in PROCESS FORM REQUEST with Context of CREATE");
    pageContext.setForwardURL
    ("OA.jsp?page=/lac/oracle/apps/lac/lacempexposure/webui/LacEmpExposureCreatePG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, //Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
    OAWebBeanConstants.IGNORE_MESSAGES);
    else if ("update".equals(pageContext.getParameter(EVENT_PARAM)))
    System.out.println("Into LacEmpExposureCO in PROCESS FORM REQUEST with Context of UPDATE");
    System.out.println("LacEmpExposureCO ==> RecordSeq in PROCESS FORM REQUEST is: " + RecordSeq);
    HashMap params = new HashMap(1);
    params.put("RecordSeq", RecordSeq);
    pageContext.setForwardURL
    ("OA.jsp?page=/lac/oracle/apps/lac/lacempexposure/webui/LacEmpExposureUpdatePG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    params,
    true, //Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO, // Do not display breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    else {           
    String strEvent = pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM);
    System.out.println(strEvent);
    System.out.println("Into the last ELSE part in LacEmpExposureCO.java");

    Duplicate post -- Issue with File Download(messageDownload) on Search Page.

  • How to place download link on jsp page to download files eg. Download PDF

    Hi,
    I have made an appliaction in struts 2 which creates PDF,its working fine now i want to place a link on my jsp page from where i can click and download that PDF file which i have created and store on my local location. Also i want to to know can i place links on my jsp page to download other type of files if i want to give link on my page to download Images or songs how can i do that,
    Help plzzzzzzzzzzzz

    IF You are using jsf then simply <h:outputLink value="file:///D:/Me/Image000.jpg"/>. This generates HTML <a> tag and value attribute replacing with <a> tag's href attribute.If you are using other technologies try to find which tag generates HTML <a> tag.
    I think You also can simply place HTML <a> tag wherever You want

  • I can't get firefox to download files from links on web pages

    I have firefox 3.6.13 and when I click on a download link on a web page nothing happens. I have to open Internet explorer to download files.
    It used to work OK for years until a few months ago.
    The only web page I have found that I can still download from is for mp3 files from amazon.com
    Isn't there anyone out there that has any idea how to solve this? If I can't get it fixed I guess I will have to make Internet Explorer my default browser.

    Do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • FIle download not working in page fragment

    Hi All,
    I have to download a file . I am using Dynamic tab shell and in one pf my page fragement link to download a file is avaliable...
    I did a POC on jspx and its working fine but when i try to use the same code in my jsff (page frament ) its not working any idea that do i have to do anything specific to acheive the same..
    Thanks
    Shubhangi

    Shubhangi/Timo,
    was this resolved? I am having the same issue. File download works fine in a jspx page but the same code is not working when file download is used as part of a page fragment.
    I have a table column that has the filename as commandlink with a managed bean code as below.
    public oracle.binding.BindingContainer getBindings() {
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    public void downloadFile(ActionEvent actionEvent) {
    FacesContext fctx = FacesContext.getCurrentInstance();
    // myDocumentLocation specified in web.xml
    String DOCUMENTS_LOCATION =
    fctx.getExternalContext().getInitParameter("myDocumentLocation");
    if (DOCUMENTS_LOCATION == null) {
    // DOCUMENTS_LOCATION = "C:\\Documents and Settings\\xxloc\\";
    Application app = fctx.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = fctx.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, "#{row.OrderFileName}",
    Object.class);
    String s1 = (String)valueExp.getValue(elContext);
    System.out.println(s1);
    String filename = s1 ;
    File srcdoc =
    new File(DOCUMENTS_LOCATION + filename);
    if (srcdoc.exists()) {
    FileInputStream fis;
    System.out.println("exists");
    byte[] b;
    HttpServletResponse response =
    (HttpServletResponse)fctx.getExternalContext().getResponse();
    response.setContentType("application/x-download");
    response.setHeader("Content-Disposition",
    "attachment; filename=" + filename);
    response.setBufferSize(1024);
    // response.setContentLength((new Long(srcdoc.length())).intValue());
    OutputStream out = null;
    try {
    out = response.getOutputStream();
    } catch (IOException e) {
    e.printStackTrace();
    try {
    fis = new FileInputStream(srcdoc);
    int n;
    n = fis.available();
    while (n > 0) {
    b = new byte[n];
    System.out.println("b" +b);
    int result = fis.read(b);
    out.write(b, 0, b.length);
    if (result == -1)
    break;
    } catch (IOException e) {
    System.out.println("in file error");
    e.printStackTrace();
    try {
    out.flush();
    out.close();
    } catch (IOException e) {
    e.printStackTrace();
    fctx.responseComplete();
    It would be great if someone could guide me with this issue.
    Thanks,
    RAS

  • Windows Vista, 7 and 8 ISO / Image file Download Links

    Series: How to Re-Install Windows when you don't have the Recovery Discs
    Intro: What is an ISO? Why is it used? 
    Step 1 - Get the ISO - ISO Download Links
    Step 2 - Burn the ISO to a DVD or USB   
    Step 3 - What to do with the ISO DVD/USB? Change the Boot Order  
    Step 4 - What to do After Windows is Installed? How to Get HP Drivers?    
    Step 1 - Get the ISO - ISO Download Links
    First, look at the Product Key label on the bottom of the computer and make sure you can still read it, before proceeding.
    How is this legal?   As long as you have the Product Key (from the bottom of a computer you paid for) for the corresponding version of Windows you download, it is perfectly legitimate and legal.
    The ISO Links: 
    Windows Vista SP1  32 & 64-bit
    *****With that link, you will have to combine the three files into an Image file (aka ISO) first (How to create an image file from files/folders) , using a program like ImgBurn.*****
    Windows 7 32 & 64-bit
    Windows 8 32 & 64-bit
    See Step 2 - Burn the ISO to a DVD or USB
    If you have any questions, create a new post (How to Create a New Post - Video), copy and paste it's link into a private message to me, and I will respond on your thread

    You shouldn't need to edit any of the files. The Windows 7 ISO is a retail, untouched version. It doesn't have a Product Key embedded into it.
    You should be able to use a Windows 7 Product Key from the label on the bottom of the computer with no issues. The installation will ask you for a Windows 7 Product Key. The only exception would be if the Product Key were in use on a different computer. From my understanding, as long as it is not already in use, it should activate.
    Please let me know if you have any questions on that

  • Website image and zip file download links not working in Dreamweaver Air application

    Hi
    I have successfully created and AIR app for an existing business website using the Dreamweaver AIR Extension. The site works very well in all respects except for the part where we have high resolution images and zip files available for download. The download links refuse to do anything, and right-click (PC) / ctl-click (Mac) does nto work either.
    I suspect this may be an AIR sandbox/security issue but am I correct and what can I do to fix it?
    Thanks in advance for any assistance you may be able to give.
    Martin

    I am now facing the same problem. I wrote a servlet .
    code like this
             response = (HttpServletResponse) faces.getExternalContext().getResponse();
             response.setContentType("application/x-download");
             String agent = request.getHeader("USER-AGENT");
             boolean isIE=false;            
            if (null != agent && agent.indexOf("MSIE")!=-1) { 
                isIE=true;
            if (isIE) {
                fileName = URLEncoder.encode(fileName, "UTF-8");
            } else {
                fileName = new String(fileName.getBytes("utf-8"), "ISO-8859-1");
            response.setHeader("Content-Disposition","attachment;filename="+fileName);
            ServletOutputStream os = response.getOutputStream();
            byte b[]=new byte[1024];
            int n;
            while((n=in.read(b))!=-1){
                os.write(b,0,n);
           in.close();
           os.close();
    and i open a new window refer to above jsp ,also i set a breakPoint at os.close(),the program has passed through,but nothing happened in the window.
    If i use IE or FF ,the browser will open a small window to allow me select whether open or  save the file.So can anybody give me some advice.Is it because air using webkit engine and the engine does not do this kind of job?
            Thanks.

  • Securing file download links

    As per the File upload/download How-to at http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14377/up_dn_files.htm#sthref153
    downloading a file involves writing a stored procedure and invoking it directly using the DAD and mod_plsql. For example, /pls/htmldb/owner.procedure?p_file_id=1234
    This link bypasses the Apex show engine so even if I have all the security in the world in Apex using authentication schemes, authorization schemes, etc, a authenticated user in Apex can just right click on the Download link, shoot it off to someone else who can download the file without even logging in to my application!
    How can these "download links" be secured so that only authenticated users can access them only from an Apex session?
    Thanks

    Thank you Vikas.
    The reason I ask is I get a compilation error in my procedure.
    I am no PL/SQL expert so I am sure my syntax or logic is wrong.
    I am using APEX version 2.0
    Error(7,19): PLS-00103: Encountered the symbol "." when expecting one of the following: constant exception <an identifier> <a double-quoted delimited-identifier> table LONG_ double ref char time timestamp interval date binary national character nchar The symbol "<an identifier>" was substituted for "." to continue.
    CREATE OR REPLACE PROCEDURE download_my_file(p_file in number) AS
            v_mime  VARCHAR2(48);
            v_length  NUMBER;
            v_file_name VARCHAR2(2000);
            Lob_loc  BLOB;
            APEX_APPLICATION.G_FLOW_ID := 100;
    BEGIN
    --testing security
    IF NOT wwv_flow_custom_auth_std.is_session_valid then
        -- display this message or a custom message.
    htp.p('Unauthorized access - file will not be retrieved.');
        -- You can do whatever else you need to here to log the
        --     unauthorized access attempt, get the requestor's
        --     IP address, send email, etc.
        RETURN;
    END IF;
            SELECT MIME_TYPE, BLOB_CONTENT, name,DBMS_LOB.GETLENGTH(blob_content)
                    INTO v_mime,lob_loc,v_file_name,v_length
                    FROM file_subjects
                    WHERE id = p_file;
                  -- set up HTTP header
                        -- use an NVL around the mime type and
                        -- if it is a null set it to application/octect
                        -- application/octect may launch a download window from windows
                        owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
                    -- set the size so the browser knows how much to download
                    htp.p('Content-length: ' || v_length);
                    -- the filename will be used by the browser if the users does a save as
                    htp.p('Content-Disposition:  attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
                    -- close the headers           
                    owa_util.http_header_close;
                    -- download the BLOB
                    wpg_docload.download_file( Lob_loc );
    end download_my_file;
    /Thanks
    VC

  • File server links in wiki pages

    Is there a way to insert links in wiki pages to files on the same server (rather than upload the file itself)?
    We have wikis and (afp) file shares on the same physical 10.6 server.
    Thanks!

    Having tested a few approaches, one that seems to work is to set up an FTP share that does not require login – that is, enable anonymous access to a 'public' ftp area. The permissions need be set to read-only or read/write to all, and files can be linked to in the following format from a wiki page:
    ftp://<servername>/<sharename>/<filename>
    While this works, it is not great from a security perspective – especially for internal wikis.

  • Help. i have to double click my SWF file to link to a page

    i have two SWF files with links in them on my page the one i
    have updated requires the user to double click to my link. the
    other link only requires one click. i do not have the fla file to
    see how this was done. can anyone let me know how i can get my swf
    file to link without me having to double click??

    sgemme13 wrote:
    > i have two SWF files with links in them on my page the
    one i have updated
    > requires the user to double click to my link. the other
    link only requires one
    > click. i do not have the fla file to see how this was
    done. can anyone let me
    > know how i can get my swf file to link without me having
    to double click??
    no idea how w/o the source, tho, can you provide the URL for
    us to check?
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Minor UI Bug: File Mail Link to This Page? Should be worded differently.

    i.g. Mail Link of This Page, or Mail URL/Link on Current Page.
    Wording is a bit confusing.

    i.g. Mail Link of This Page, or Mail URL/Link on Current Page.
    Wording is a bit confusing.

  • How to make a file downloadable on my JSP page.......

    I want to make a file to be downloadable on my webpage. I have developed a simple lindk to the file. But internet explorer opens that file and don't show option to save it on hard disk. If any can mail me some Servlet solution or applet ( preferably servlet ) I will be very thankfull to him
    My mail address is
    [email protected]
    Please send it to me as soon as early as my M.Sc viva is going to held shortl and I have to add it before that viva.

    Hi,
    generally browsers will ask whether to save it to local drive or open it?, if you click on a link that has link to a file. This you need to set in the browser's options. check your browser's options and set the option to show the dailog box if you click a hyperlink.
    have fun!!
    --raj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • File download issue in ADF

    Hi All,
    I have written a code which downloads a file. This works absoltely fine but after the download when I click on empty area in the page the browser hangs(IE7).
    Here is the code snippet.
    //=======================================================//
    response.setContentType("Content-type: application/xml");
    response.setHeader("Content-disposition",
    "attachment; filename=File.xml");
    OutputStream out = response.getOutputStream();
    out.write(dataSting.getBytes());
    out.flush();
    out.close();
    FacesContext.getCurrentInstance().responseComplete();
    System.out.println("Done deal !!");
    //=======================================================//
    Any pointers for the problem ? But it works well in Mozilla.

    This example is slightly different.
    My Usecase:
    Page1-->Pop-up
    Pop-up closes and back to Page1
    Page1-->Send to browser(inside return listener I send to browser)
    And the browser hangs
    Example case:
    Page1-->Pop-up-->Send to browser
    It doesnt hang...
    So, I changed my use case to the second option.
    Nevertheless thanks for the support.
    Still the problem persist for "My Usecase"
    Message was edited by:
    user583382

Maybe you are looking for

  • _wl_cls_gen.jar artifact is missing some resources

    After deploying an Enterprise Application Archive (EAR) to Weblogic Server, for each WAR file contained in the EAR file, a <strong>wlcls_gen.jar</strong> artifact is generated in <ORACLE_SERVER>\user_projects\domains\<DOMAIN_NAME>\servers\<SERVER_NAM

  • J_security_check with mysql db?

    Hi, I've been trying to figure out this problem for a while now. I have the following in my web.xml <security-constraint> <web-resource-collection> <web-resource-name>All JSP direct access</web-resource-name> <url-pattern>members/*</url-pattern> <htt

  • Spotlight Window Sizing

    Is it just me or does Leopard not remember the last window size you use in spotlight among others. I have it set for cover flow view but the window is always too small and I have to readjust. Is there anyway to set it as you left it. This was always

  • Update enrolled table which has 6 composite primary key

    Hi Everyone, I am trying to update a grade column in table called enrolled which has 6 composite primary key column including SID, TERMYEAR, FACCODE, DEPCODE, COURSENO, SECNO and 2 extra column including GRADE, IDD all of them are of type VARCHAR2 as

  • Uploading ESS packages in to NWDS????

    HI, I am new to wd-java.My requirement is i want to customize the tax excemption in ESS.please tell me how to customize the ess business packages in NWDS.Please provide step by step and also tell component usage here.and also tell me FloorPlanManager