AF:goLink to open a PDF file

My version of JD is: Studio Edition Version 11.1.1.6.0

I'm trying to open a pdf file in a new window of the tab

< af:goLink text = ' #{point.» Description} ".
Binding = "#{backingBeanScope.NewPage.GL1} '"
ID = "gl1".
destination="file:///C:/01-0007-0.pdf".
targetFrame = "_blank" / > ""
< / af:carouselItem >


When I copy and paste paste this url "file:///C:/01-0007-0.pdf" the file appears, but when I run the application and click on GoLink nothing happens!

What is worong? What do I do?

Something like

public void sayHello(FacesContext context, OutputStream out) throws IOException {
        File file = new File("C:/01-0007-0.pdf");
        FileInputStream fis;
        OutputStreamWriter w = new OutputStreamWriter(out, "UTF-8");
        byte[] b;
        fis = new FileInputStream(file);
        int line;
        while ((line = fis.available()) > 0) {
                b = new byte[line];
                int res = fis.read(b);
                w.write(b, 0, b.length);
                if (res == -1)
                    break;
            }
            w.flush();
    }

Arun-

Not tested

Tags: Java

Similar Questions

  • How to open a PDF file using the built-in Viewer? (Windows 8.1)

    When I try to open a PDF file I have the pop-up dialogue "you have chosen to open *.pdf Firefox do with this file? And display in Firefox is not one of the options. I am sure that what is happening is that there is no dialogue, and the PDF has just opened in the integrated Viewer pdf.js. If something is wrong with my profile I guess.

    I tried the instructions here: https://support.mozilla.org/en-US/kb/view-pdf-files-firefox-without-downloading-them

    I checked through all my extensions and you do not have open a PDF (I have uBlock, NoScript and Zotero).
    I completely uninstalled Adobe Reader.
    I checked that in preferences/Applications, PDF is set to "Preview in Firefox.
    I did as I went through: config and change all settings with 'pdf' on their return to their default values
    But none of these things work.

    Is there anything else I can try to get this working?

    I think the problem I had was that some of the PDF files is served by Web sites with a "header" (I don't really know what that means) called "Content-Disposition: attachment", and when this happens, Firefox refuses to load them into the integrated PDF Viewer. (I don't know why Web sites this.)

    It is very helpful, especially because Firefox gives no indication as to what is happening (why the user preference for a PDF file is not respected). I just thought that the PDF Viewer was broken and spent hours trying to fix it.

    If anyone runs into this problem, there is an extension that fixes it: https://addons.mozilla.org/en-us/firefox/addon/inlinedisposition/

    There is a Bugzilla bug open about it: https://bugzilla.mozilla.org/show_bug.cgi?id=773942

    As far as I can see, it would be trivial reflect changes the extension above in Firefox. In the bug of no claim that it would be a bad thing to do for safety reasons. But Firefox should at least present the user the ability to open the PDF file in the integrated Viewer or even more at least have explanations on why the PDF is not currently open in the Viewer, for example "this PDF file was marked for download, so for safety reasons it has not been opened in the integrated Viewer. Who would save people like me, who don't know the HTTP headers that are complicated, just think that Firefox is broken.

  • Why does firefox open a non-stop tab string when I try to open a PDF file?

    I don't know if it's a coincidence, but right after that I installed the latest version of Adobe flash player, firefox now opens a string with no end of new tabs, whenever I try to open a PDF file. I have to close the window and start over.

    Help?

    the machine is a HP Elitebook 8540w. Windows 7 64-bit.

    You have configured Firefox to use the Adobe Acrobat plugin? It seems that he may be missing or disabled, because it does not appear in your "more details of the system" (next to your message). You can see the page modules. Either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click on Plugins. Then on the right, look for Adobe Acrobat. It may be down on a gray background.

    If you don't have it: Make sure that this isn't your favorite here player:

    "3-bar" menu button (or tools) > Options > Applications

    You can type or paste pdf in the search box at the top of the list after loading to filter.

    If you have it, but it cannot be activated using 'Always enable' or "Ask to activate": You may need to update. I recommend using the help inside your product Adobe (Reader or Acrobat) menu to check the updates.

    Any progress?

  • Whenever I try to open a pdf file in firefox, he asks me to activate adobe acrobat. How can I stop this from happening?

    I have activate acrobat, but it happens always next time I need to open a pdf file. The same problem occurs when I use a quicktime file. I can down down I would allow me every time but one time, next time, I want to use, see, or hear a quicktime file I get the same question. It's very annoying. I went into options and chose the file to use to open rather than have me ask but it does not solve the problem either.

    Hello moxiet, please go to the firefox menu > addons > plugins where you can set general preferences for individual plugins (always ask or always activate).

  • How to stop firefox from opening new tab when opening a pdf file that is already recorded on my desk?

    Windows 7 Pro 32 bit PC

    PDF files on my desk I have already registered. When I open the PDF file, firefox considers justified to open a new tab, even if I do not have the browser open. It's boring because after I close the PDF file I then have to close the browser window new tab as well. It costs me a lot of time to productivity as I opened a large number of PDF of the work. The PDF file to view the Adobe logo on the file on the desktop. Once I installed firefox displayed the logo of firefox?

    I've already put in PDF to open it with Adobe by default via Menu-Options-Applications

    Please try:
    Right-click on your .pdf file to open the context menu, select "Open with", then "choose program by default... "In the window"Open with"choose your favorite pdf-viewer and define the box always check"use the selected program to open this type of file. Then click on the OK button.

    Is this solve your problem?

  • When opening a PDF file, a new tab will open, but it will be empty, it do not download or open any pdf file, it just started the last 3 days...!

    Hello
    I'm about to remove Firefox from my computer because he lost hours of my time, and none of the online troubleshooting answers are no help.

    Until recently, I was able to open PDF files in my browser window, and today its impossible to open any pdf file, it will not download if I choose to download it.

    This issue is ongoing, and shut down for almost a year and I downloaded the Nitro PDF module to solve previously as Adobe reader add-on did nothing. Today in the menu options of applications where I can choose the program I want to open PDF files with I can't find the option NitroPDF reader, so I chose the add-on Adobe and no matter how many restarts it refuses to open all PDFs, all I get is a new tab open and empty.

    Internet Explore opens PDFs very well, so I know it's not computer associate.

    I'm running Windows Vista Ultimate, Firefox Version 19.0.

    If there is a way to fix this, please help because I am currently at the end of my patience.

    Kind regards

    Emre

    19 FF has its own Viewer for pdf files. It doesn't seem to work properly. The screens are either poor quality or empty. Printing using the bad characters and spacing of bad character. Some impressions of color and others are not.

     Thankfully, it is easy to revert to using some other pdf viewer, such as Foxit. Go to Tools / Options / Applications and scroll down to "Portable Document Formay (PDF)", and change it to your preferred pdf viewer.
     Your problem is solved!
    
  • How can I get firefox to open a pdf file in adobe instead of the new pdf reader?

    Before the recent update, 19.0, I google something and see [PDF] next to a link. I click the Center button to open it in a new tab. Firefox might download the file and open it with Adobe Reader. I like this.

    With the new update 19.0, the pdf file would open in the new tab. I have to down load it and then open it in Adobe. I don't like this.

    I'm going to preferences under applications. I look to see if I can change that. Next to document Adobe Reader, I choose to use Adobe Reader, but when I click on a link [PDF], it always opens the file in Firefox and not Adobe.

    I want to go back to the way it was.

    Problem: Open a pdf file in Firefox, he wants to save the file.
    Remedy:
    In Firefox, tools, Options, choose the column on the left (Content Type) Applications tab, select Portable Document Format (pdf). Right column (Action) choose Preview in Firefox.
    I use Firefox 21.0.
    Wednesday, may 29, 2013, Tom Budlong

  • Every time when I try to open a pdf file in firefox, firefox crashed, someone can hekp me?

    Every time when I try to open a pdf file in firefox, firefox crashed, someone can hekp me?

    It's firefox as a whole that hangs or is it just the plug-in from adobe?

    First of all, I would recommend trying the advice in the following link:
    Send reports of incidents of plugin to improve Mozilla Firefox

  • Foxit Reader does not open online pdf files

    I use Firefox 3.6.11 and Foxit Reader 4.2. I have no problem opening pdf files that I saved. But when a website wants to open a pdf file, I get a blank page.

    Another thing you'll need to do after you open Foxit tools and check both boxes, is to open Firefox, go to: Tools > Options > Applications. Scroll to PDF Document under Content Type. Cross action, click on the arrow to open the drop down menu and select: use Foxit Reader.

    K

  • How to have the sidebar with thumbnails by default in the application preview? Whenever I open a PDF file, there is no sidebar.

    How to have the sidebar with thumbnails by default in the application preview?

    I'm on OSX El Capitan 10.11.3 on iMac, and whenever I open a PDF file, there is no sidebar. I have to every time click on the Sidebar icon, then select the thumbnails. I would like to be on by default, but cannot find the option or how to edit the plist file...

    If the thumbnails is checked in the menu 'View' preview, it should always open a PDF file with the open sidebar. Unless of course, it's a single page PDF.

  • Cannot open the pdf file. fault of 57?

    file pdf loaded down, but not may not open. lack of 57 back constantly.

    Hello

    1. what version of Windows is installed on the computer?

    2 is the issue specific to this file in particular?

    3. What is the exact error message?

    4. are you save the file on the computer and then open it?

    5. If you are viewing the PDF file online, what browser are you using?

    6. If you are using Internet Explorer, version of Internet Explorer you are using?

    7. what application you use to open the PDF file?

    8. are you aware of any changes made to the computer, before the show?

    Method 1:

    If you use Adobe Acrobat, see the following link.

    Unable to open the PDF

    http://helpx.Adobe.com/Acrobat/KB/cant-open-PDF.html

    Method 2:

    If you view the PDF on the web, go to the following link:

    Cannot view PDF on the web

    http://helpx.Adobe.com/Acrobat/KB/cant-view-PDF-Web.html

    Method 3:

    Uninstall and reinstall Adobe Acrobat Reader and look for the question.

    Uninstall or change a program

    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

    I hope this helps.

  • Why my PC will cut Internet connection whenever I try to open a PDF file and how do I corret the problem?

    Why my PC cuts her Internet connection whenever I try to open a PDF file and how can I fix the problem?  Even if I still have my cell phone internet access will not open a PDF document online.

    Hello

    ·        What operating system is installed on your computer?

    ·        What browser do you use to access the Internet?

    ·        It happens with PDF files or file as well?

    I suggest that you follow the instructions in the link and check if this can help:

    Cannot view PDF on the web

    http://kb2.Adobe.com/CPS/328/328233.html

    Respond with the required information so that we can help you further.

  • How to open the pdf file using the LabVIEW program

    I want to open the pdf file using the system exe, but this isn't the case. Can you help me?

    Thanks for your help.

  • When I try to open a PDF file, I can't and constantly get a debugging C++ library pop up and can not open all PDFs

    How can I get rid of this window whenever I try to open a pdf file

    Sometimes when I restart my computer it let me for some time still comes back

    http://www.ehow.com/how_5185173_remove-disable-system-debugger.html

    You can cancel debugging.

    However, that could just hide the problem, make sure that your computer is clean and send more information: brand and model of pc, operating system current antivirus and ServicePack, do the following:

    Download, install, update and scan with these full free malware detection programs:

    Malwarebytes (MMFA): http://malwarebytes.org/

    SUPERAntiSpyware: (SAS): http://www.superantispyware.com/

    http://www.Microsoft.com/security/scanner/en-us/default.aspx Security Scanner   

    After return with results and responses for the record requested, please.

  • Cannot open my pdf files today. no problem before

    When I try to open my pdf files, they open but have become gibberish.

    Hi LEE N LOUISE BENNETT
     
    -You get an error message or error code?
     
    -Remember to make changes to your computer after that this problem started to happen?
     
    Try to disable the safe_mode of drive X and check if you continue to see the problem.
     
    You can disable the mode protected using the following steps:
     
    a. launch Reader X and select Edit-> preferences...

    b. select general in the left navigation.

    c. under the application startup uncheck 'Enable Protected Mode at startup'. Click OK.

    d. exit Adobe Reader X and re - open the PDF file and check.

Maybe you are looking for

  • A few questions about Apple Watch.

    Hello, guys... My name is Alexander and I live in India. I wanted to buy a Apple Watch and I have a few questions. 1. I use Wi - Fi router and did not have cellular data Plans. Now my doubt is, when the iPhone is not connected to a network of data, W

  • Problem flashing with live viewing with IMAQ Image display

    Hello world I am writing a program for live imaging with camera Andor. I use some examples from Andor. The images are acquired in sequence and send in Image IMAQ and also graphical intensity display. There is minimal flicker issue in the graph of the

  • Is there a way to find (orphaned) uncalled screws in a project?

    I'm cleaning up some projects that I inherited, and I was wondering if there was an easy way to find screws that had some callers and then withdraw the project. If not, there is a way to do that, then I go for the exchange of ideas!

  • Windows 7 SP2

    is it still out there? or Win 7 shared Win Vista SP2?

  • Don't remember my old username and password

    Hey there, you have a question for all those out there who might be able to help me. I hang an old computer me for my children that runs windows xp on a pc. He asked my username and password but I don't have any idea what it could be more. On the scr