How to get generated HTML file to display in new window from FileDownloadActionListener?

Hi,
I am using Jdeveloper version 11.1.1.5.
I have a use case where the user can produce a report upon the click of a command button. They can generate 3 types of reports, HTML, PDF or Excel depending on which option they select in the radio buttons preceding the 'generate report' command button.
The files are created in the background (XML file created based on View Objects which is then transformed using the relevant API for the report type and then produces a file which is held in servers temp directory) and is served out through a FileDownloadActionListener component programmatically, which itself is surrounded by a Command Link with visibility property set to 'false' (as per this blog:http://www.jobinesh.com/2010/01/customizing-execution-of-to-validate.html).
Everything works fine in that the reports generate correctly and after clicking on the 'generate report' button the browser's 'Open/Save' dialog box appears asking the user what they would like to do with the file. I am using Internet Explorer as that is what most of the client users will be using.
The issue I'm having is as follows. For PDF and Excel types when the user clicks on 'Open' the file opens in separate Adobe Reader or MS Excel application windows respectively, which is as expected and required. However, the HTML document opens within the same browser window within which the application is running and from where the 'generate report' button was clicked. The issues this presents is that if the user closes the browser window displaying the report then they will need to open a new window to re-establish connection to the application. If they click the browser 'back' button then it takes them back to the original page but not in exactly the same state as it was before the report was launched i.e. there are some components missing and the page doesn't display correctly.
Is there another way for me to achieve this or is it even possible? I tried setting the 'useWindow' property of the invisible command link surrounding the FileDownloadActionListener to 'true' which didn't work. I tried to surround it with a Go Link instead of a command link but that gave me NullPointerException's, I think because you can only use a component which has an 'Action' property?
I appreciate your assistance as always.

Hi,
  I'm not sure if this solution is appropriate to your situation, but I had the same problem with trying to redirect from a commandLink to a new window.  In the method that is called by the links action I used the following:
// Open the url in a separate browser window
ExtendedRenderKitService erks =
  Service.getRenderKitService(fctx, ExtendedRenderKitService.class);
StringBuilder script = new StringBuilder();
script.append("window.open('" + url + "', '', '');");
erks.addScript(FacesContext.getCurrentInstance(), script.toString());

Similar Messages

  • How to get real html files with forms 6i

    I know this may be a repeat question, but this is our context :
    We are deploying a heavy Forms6i app to the web. Everything is ok. We're able to run the forms in the MS Internet Explorer 5 native java window, without having to download first Jinitiator (8Mo) on the client.
    BUT it takes to much time to initiate the session, this is way to heavy.
    Do you know when Forms6i will be able to generate real html files on the fly or any way to have a quicker access to Forms through the web.
    Thank you very much

    Thanks.
    1/ Actually most of the customers will use our app through normal 56k modems. Their first connection must avoid to download Jinitiator which is 8Mo, so we don't want people to use Jinitiator (opening the session is even longer with Jinitiator than IE5).
    2/ Moreover, the applet window has a grey title line with the word "window" and the name form : this is not internet at all ;-)
    3/ A normal connection through a firewall doesn't work with the famous port 9000.
    help please.
    Thank you
    null

  • Spry Gallery - how to get large image to open in a new window?

    Hey guys,
    I'm building a new website and decided to use Spry for the Gallery section. It works like a charm but I want to get the larger version of the image to open in a new window when someone clicks on the normal image? It shouldn't be that difficult but I'm lost. Can anyone help?
    I believe I have to put a <a href> infront of the image something like this:
    <div id="picture">
            <div id="mainImageOutline" style="width: 0px; height: 0px;"><a href="?????" target="_blank" id="??????"><img id="mainImage" alt="main image" src=""/></a></div>
      </div>
    and something to the XML file...
    <photo
    path = "1.jpg"
    width = "300"
    height = "400"
    thumbpath = "1.jpg"
    thumbwidth = "56"
    thumbheight = "75"
    large = "galleries/xyz/large/1.jpg"   <------- this is the large image I want to open in a new windows
    >
    </photo>
    thanks!!

    Actually, the site is for my friend and she really likes this Gallery: http://labs.adobe.com/technologies/spry/demos/gallery/index-air.html
    I just want to keep this one and just edit it, so when I click on the image it opens the large image...

  • How to get index words to open in a "new window"

    I am using RoboHelp 7, WebHelp.
    I want some of my index words to link to www and NOT a topic.  I can do this but when you click on the index word it opens the link in the RoboHelp pane and NOT a new window.  I thought I figured out how to fix this by right-clicking on my index word, choosing Properties, Advanced, and click on the down arrow next to Frame and choose New Window.  I was so proud of myself for figiuring this out.  After I published my site, this still won't open the link in a new window.  Does someone know if this is a known bug or am I doing something wrong?  Thanks for your help.

    Hi there
    I just tested and the settings you mentioned caused my own WebHelp to open the link in a new window (well, it appeared as a new tab in FF, but it worked there). I also tested in IE and it worked in that as well.
    Have you tested from different machines? Perhaps it's a configuration setting on your PC?
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How to get the HTML data formatted display using the Rrt template

    hi,
    I have a table which has data with html tags in it.
    eg as shown below.
    sample text is as follows:
    <BR>
    <b>MY TEST HERE HAS SOME BOLD TEXT IN IT. THIS WHOLE LINE SHOULD BE BOLD</b><br>and the rest of the text will not be bold.
    <BR><br>
    now I want to be able to display this text with the proper format using BI publisher / rt template.
    my report shows the tags as is instead of being formatted.
    please let me know how i can fix this
    Thanks
    knut

    http://blogs.oracle.com/xmlpublisher/2007/01/02.

  • How to get the HTML page size displayed in JEditorPane

    Hi All,
    I'm using a JEditorPane object in order to view/display an HTML page. The nature fo my program is that it does not know the size of the page in advance, but only on runtime. I'd like to get the size of the HTML page in order to determine the frame size according to the size of the HTML page.
    Is there a way to get the size of the HTML page from the JEditorPane?
    Thanks.

    after displaying the page in your editor pane you can get the diamension for the page by calling
    JComponent class method getSize();
    actually your question is not so clear
    use the JScroll pane then you don't need to worry about the size of the page.

  • Generating HTML Files via RECEIVER File Adapter

    Hi All,
    I have the Following Scenario: 
    R/3 ( ABAP Proxy ) -
    >XI------>HTML Files ( File Adapter ).  
    Basically I would like to generate, HTML files out the RECEIVER File Adapter.   How can this be achieved?
    I  have invested some time in thinking about a adapter module, which can do this? Any Blogs would be Helpful here.
    Is there any alternative way? 
    Any Blogs or help Links would be appreciable.
    Thanks in advance,
    Best Regards,
    Abhishek Vinayaka

    Hi
    Look these thread for Create HTML file format
    if the reciever adapter is file i want in messages to be  in HTML format
    Re: idoc-xi-file scenario.  how to display file in html format

  • I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    Hi Frank ,
    Please refer to the following link and see if this helps.
    https://helpx.adobe.com/acrobat/kb/error-organizer-database-damaged-reset-1.html
    Regards
    Sukrit Dhingra

  • How to add a html file into JEditorPane

    Hi
    I am doing an aplication on swing.But I don't know how to add a html file to the JeditorPane keeping the html file on the source code. i.e my html file is in my source code.Then how to add this html file to Jeditor pane.
    Thanks
    Srikant

    QuickTime requires player and plugins that most people don't have.  You'll reach a much wider audience if you use HTML5 <video> with mp4, webm and ogg files.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 with Video</title>
    <!--help for older IE browsers-->
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    </head>
    <style>
    video {
        max-width:100%;
        display:block;
        margin:0 auto;
    </style>
    <body>
    <h2>Use 3 File Types to support all browsers &amp; mobile devices:  MP4, WEBM and OGV.</h2>
    <h3>Online Video Converter
    http://video.online-convert.com/</h3>
    <!--begin video-->
    <video controls poster="Your_poster_image.jpg">
    <!--these are 6 sec sample videos for testing purposes. Replace sample-videos with your own files-->
    <source src="http://techslides.com/demos/sample-videos/small.webm" type="video/webm">
    <source src="http://techslides.com/demos/sample-videos/small.ogv" type="video/ogg">
    <source src="http://techslides.com/demos/sample-videos/small.mp4" type="video/mp4">
    If you're seeing this, you're using an
    outdated browser that doesn't support
    the video tag. </video>
    <!--end video-->
    </body>
    </html>
    Nancy O.

  • ORA-04030 while generating HTML files

    While generating HTML files out of the database, combining XML type and structured data, and storing these files in XDB filesysteem. I get the following error.
    ORA-04030: out of process memory when trying to allocate 2048 bytes (cursor work he,kghsseg : kokeismo)
    Does anybody have an clue about the cause. We are using a 9i database, with patch 9.2.0.6. not yet installed, running on Solaris. it looks like the generator stops every time after the same content item.

    Hi,
    This is because of fragmentation of shared pool. If this is other than production database, you can flush the shared pool by "alter system flush shared pool;".
    For production database, it is not advisable to flush the shared pool as it contains parsed sql statements. You can increase the shared_pool_reserved_size. Normally it's 10% of shared_pool_size. If you are using Oracle 8i, you can set shared_pool_min_alloc parameter so that for memory higher than this value only, the reserved size will be used. This parameter is deprecated in 9i. For temporary purpose, you can execute dbms_shared_pool.aborted_request_threshold(val_in_bytes) to release space from shared_pool.
    Thanx.

  • Can AnyOne Please Tellme How to configure the HTML files

    This is very Urgent.
    1.I am using the WLS7.0 sp1 .I need to configure theHTML files which are in a
    different path how can I map them to the present DefaultWebAPP directory.
    2. How can I get rid of the port number when I am fully using in production mode.
    I have been posting this query since long but in vain. Please guide me

    1. I got rid of port number with link provided by the karthik.
    2.How can I create a link .The link appends to the defaultwebapp directory
    and checks from their .I need to know how to configure the
    HTML files which are not in the DefaultWebApp.But completely in directory.
    Any suggestions !!!!!!!
    Shehzad <[email protected]> wrote:
    1. You can create a link to that directory
    2. In order to get rid of port number, either boot weblogic at default
    port 80, or use Apache or Iplanet webserver, and use Weblogic plugin.
    That way all the traffic comming in from http will comein at port 80
    to the webserver, and would then be forwarded to Weblogic at whatever
    port it is booted.
    This is very Urgent.
    1.I am using the WLS7.0 sp1 .I need to configure theHTML files whichare in a
    different path how can I map them to the present DefaultWebAPP directory.
    2. How can I get rid of the port number when I am fully using in productionmode.
    I have been posting this query since long but in vain. Please guideme

  • I imported different trips to different catalogs on different external hard drives.  Later renamed external HDs.  I want to combine catalogs and have my source (NEF) files all together on one drive.  I'm not really sure how to get those source files back

    I imported different trips to different catalogs on different external hard drives.  Later renamed external HDs.  I want to combine catalogs and have my source (NEF) files all together on one drive.  I’m not really sure how to get those source files back and get rid of the extra long path to where the source files are now located. If I re-link files to their current catalog (many different paths to files in same catalog) can I merge (import catalogs) into one master catalog?  Will the new (Master catalog) have the correct link to the source file?  If not, how or can this be done?
    I have tried to explain my situation as clearly as I can.  Do you understand my situation?
    This maybe something you don’t have time to help me with.  If not can you suggest somewhere I can get an answer?  I really need help.  PLEEEZZZ HELP ME.
    Bruce Schuerman
    Norman, OK
    405_514-4875 (call collect)
    [email protected]

    Is there any solution (other than buying
    I really think 'buying' is the best solution on this one.  Ideally, you would have at least five internal hard drives.
    System
    Projects
    Cache/Scratch
    Media
    Exports
    Use externals and network drive only for backup.

  • Swf2html.exe and infinite generated html files

    Dear,
    I use the tool swf2html.exe from Adobe for extracting textual content on .swf files.
    Is there a way to avoid infinite iteration on such swf files : i.e. http://www.cartoondollemporium.com/superdollz/dollz/1012/doll.swf ?
    The problem is that when I try to generate html file with that file in PHP, swf2html.exe made an infinite iterate and there is no way (except manualy cut the process) to stop for example on a max output file size generated.
    Thanks of you have some tips to avoid or solve that extracting problem,
    For test :
    http://www.se-flash.com/cgi-bin/flash.pl?etape2=1
    with http://www.jeuxclic.com/jeux/bubble_shooter.swf work.
    http://www.se-flash.com/cgi-bin/flash.pl?etape2=1
    with http://www.cartoondollemporium.com/superdollz/dollz/1012/doll.swf made infinite loop....
    Stephane.

    1) All you do is specify a directory with the -d option and Javadoc creates the directory structure below that. We often use either "-d docs" or "-d html" to create a directory named "docs" or "html" in the current directory.
    2) Preferably they should be stored on a server that has a web server running so people can access them. We build the docs nightly on the development server where people can access the latest version using a file: URL (not with a web server). Then before each release we stage them on our intranet before we push them out to the intranet. We also run the DocCheck doclet and a link checker nightly so developers and writers can find errors in their documentation.
    3) If you want a top-level page that links to separate javadoc documents, you need to do this manually. However, keep in mind that you can also inter-link all those separate documents by using the -link or -linkoffline option.
    Let us know if you have more questions or comments.
    -Doug Kramer
    Javadoc team

  • How to get a PDF file in iMovie ?

    Hello,
    I have a sketch as a PDF file on my desktop.
    How can I get this sketch in iMovie '11 ?
    Thanks for your answer !
    John

    Thank you, but I have to be more clear ...
    I received a drawing from a friend - a Windows user - as a "docx" file.
    When I clicked on it, it opened in Pages '09 version 4.0.5 with a message popped up stating : - Some warnings occurred. Would you like to review them now ? You can review warnings at any time by choosing View > Show Document Warnings.
    With "Don't Review" or "Review" commands.
    I clicked on "Review" and saw a Documents Warning stating a Missing font Calibri.
    Clicking on Share > Create a PDF document that can be viewed and edited with a PDF application, or viewed in a web browser. Image quality 'Good' . And command 'Next …' and saved as ' logos1.pdf ' on Desktop command EXPORT.
    It opened in Adobe Reader and I saw this message :
    - This document does not allow you to save any changes you have made to it unless you are using Adobe Acrobat 9, Adobe Acrobat Pro 9, or Adobe Acrobat Pro Extended 9. You will only be saving a copy of the original document. Do you want to continue? -
    The Adobe Reader vs 9.4.2 was put on my Mac years ago …
    I have the feeling I'm circling around a problem while NOT knowing how to get the sketch file in iMovie '11 …..
    Please tell me what do I do wrong ?
    Or should I ask my friend to resend the logo in another, and what file format ?
    Hope I could make myself understandable, after several years living as a dutchman in France ?

  • How to get list of file names from a directory?

    How to get list of file names from a directory?
    Please help

    In addition, this:
    String filename = files;Should be this:
    String filename = files;
    That's just because he didn't use the "code" tags, so [ i ] made everything following it become italicized.                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • IMovie 6 HD Plugin Incompatibility

    I have been using iMovie HD 6.0.3 (267.2) for a while and have found it a very untrustworthy and unreliable application. Apart from the regular crashes, one day my iMovie refused to open so I reinstalled it from iLife 05 and updated it from the apple

  • How to generate a crash (or bug) report

    I am trying to work with Soho notes (documents management: scanning, archieving, ....). I have a problem while using one functionality of this software: the mouse pointer becomes the spinning wheel with all the colors. After I have waited more than 5

  • Can't delete events

    i was trying to make an event that spanned three days and managed finally, but setting the dates section, but now I have multiple events on the days. Want to delete the separate events to just leave the spanned event. I try to highlight and go to Edi

  • Problem with adding new music from itunes to iphone

    Hello! I cant drag and add music to my iphone 4 anymore how i did before. Can you help, please?

  • Smooth path tool (for pen tool).

    Hello, all. I believe I remember using this tool or function in the past but can't seem to find it now. In the past I have traced the outline of an image using the pen tool by placing as many points along the countour or outline as possible. Once I c