File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes showing pdf in Fire fox giving problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "showing pdf in Fire fox giving problem" Watch "showing pdf in Fire fox giving problem" New topic
Author

showing pdf in Fire fox giving problem

S Majumder
Ranch Hand

Joined: Jun 03, 2009
Posts: 244
Hi every body ,
I have a problem related to PDF showing the browser , It is working fine in the IE , but in the FF it is not showing .

Here is my Backing bean code for fetching the PDF .

The main backing bean name is myBean.



Here is my view JSF



Thanks & regards,
S
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Its a well known problem with FF, the browser gets hang while opening the pdf files:
Firefox PDF problem


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Annu Vinayak
Greenhorn

Joined: Jul 17, 2009
Posts: 19
Try replacing the h:commandLink with h:commandButton. I was having problems with opening Excel document in Firefox with h:commandLink. It worked after I changed it to h:commandButton. If it works you can change the style of the button to make it look like a link!
S Majumder
Ranch Hand

Joined: Jun 03, 2009
Posts: 244
Thanks for your reply .

I have used the h:commandButton & it is woking fine .Could you give me some hint how could I change the h:commandButton to a link ?


regards,
S
Annu Vinayak
Greenhorn

Joined: Jul 17, 2009
Posts: 19
Put styleClass="linkStyle" in the tag and add

.linkStyle {
cursor: pointer;
}

to your styleclass.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: showing pdf in Fire fox giving problem