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 Head First Android 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
It's not a secret anymore!