wood burning stoves 2.0*
The moose likes JSF and the fly likes How to Print only data from the form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply locked New topic
Author

How to Print only data from the form

vin gun
Greenhorn

Joined: Feb 12, 2010
Posts: 5
I am having a problem in my ADF/JSF page. I just want to print the form data of my form instead of the whole page.using javascript:print() method prints the whole page.so can you help me in solving this issue. I have JDev 10.1.3 and do not want to upgrade to JDev 11g!

Is there some java or JavaScript code to do so?

Thanks,
Himalay Majumdar
Ranch Hand

Joined: Sep 28, 2008
Posts: 324
I think you can consider using this..

SCJP 1.6, SCWCD 5.0, SCBCD 5.0 [loading..]
vin gun
Greenhorn

Joined: Feb 12, 2010
Posts: 5
Himalay Majumdar wrote:I think you can consider using this..



Thanks Himalay!!! I have never used this before. I saw the following code by googling but not sure how to use it in my ADF/JSF page:

var o = $("#divToPrint");
o.jqprint();
// or
$("#divToPrint").jqprint();

Could you please explain a little more...

Thanks again for the help.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60780
    
  65

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
jQuery in Action, 2nd edition
 
subject: How to Print only data from the form
 
Similar Threads
How to Print Form data in JSF
Japanese text in query string.
Printin the Form Data in JSP
Java form to print only data and not buttons/scrolls etc
suggestion for print option