This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes Print functionality in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Print functionality in JSF" Watch "Print functionality in JSF" New topic

Print functionality in JSF

Bahadur Shah

Joined: Feb 20, 2007
Posts: 18
I've a JSF page where I'm displaying a chart as an image.

I've a print button on my page.
When I click on print button, It should print the image in the page.

Can anybody please suggest me how to achieve this?
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Whether a printer prints images from a website depends on the browser's (and in rare cases also the printer's) configuration. Usually they will by default just be printed.

Here I assume that you don't have a CSS media rule specified which for instance hides images from the print media.
I agree. Here's the link:
subject: Print functionality in JSF
Similar Threads
How to hide the Print button in printed document ?
How to print a document?
printing current webpage...!
CommandButton with Image and Label