• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Print Form data in JSF  RSS feed

 
HemPushap Kaushik
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am having a problem in my JSP.I just want to print the form data of my JSP instead of the whole page.using javascript:print() method prints the whole page.
so can you help me in solving this issue.

Thanks
Hem Pushap Kaushik
 
Tim Holloway
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The easiest way I know to do that is to use CSS features to control how the different parts of the page will print (or not print!).

Use them the same way you would for straight HTML. There's nothing special about JSF in that regard.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!