File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
subject: Print functionality in JSF
Similar Threads
printing current webpage...!
How to hide the Print button in printed document ?
CommandButton with Image and Label
How to print a document?