Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

showing pdf in Fire fox giving problem

 
S Majumder
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its a well known problem with FF, the browser gets hang while opening the pdf files:
Firefox PDF problem
 
Annu Vinayak
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put styleClass="linkStyle" in the tag and add

.linkStyle {
cursor: pointer;
}

to your styleclass.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic