Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JSF中的打印许可协议_Jsf_Printing_Xhtml - Fatal编程技术网

JSF中的打印许可协议

JSF中的打印许可协议,jsf,printing,xhtml,Jsf,Printing,Xhtml,我正在使用xhtml在JSF中创建许可协议页面。中有一个链接打印许可协议。其中,当用户单击“打印许可协议”时,许可将导出为pdf格式,其中 然后用户可以打印。您能告诉我我们在jsf中是如何做到这一点的吗?几年前,jsf 1.2中使用了以下javascript函数来打印页面的TopPrint部分: function printTandC() { if (isIE() == true){ document.toPrint.focus(); document

我正在使用xhtml在JSF中创建许可协议页面。中有一个链接打印许可协议。其中,当用户单击“打印许可协议”时,许可将导出为pdf格式,其中
然后用户可以打印。您能告诉我我们在jsf中是如何做到这一点的吗?

几年前,jsf 1.2中使用了以下javascript函数来打印页面的TopPrint部分:

function printTandC() {
    if (isIE() == true){ 
        document.toPrint.focus(); 
        document.toPrint.print(); 
    } else { 
        window.frames['toPrint'].focus(); 
        window.frames['toPrint'].print();
    }
}
toPrint在哪里

<iframe src="../tandcprintable.seam" id="toPrint" name="toPrint" class="tandcprintable"/>