jsf 2 - How to refresh current page and open another browser tab or window to view pdf file at same time using JSF and primefaces -
this question has answer here:
i've got requirement 1 click of command button refresh current page , open tab, window, or browser view pdf file @ same time using jsf , primefaces. , i'm using jasper report generate pdf.
with commandlink use attribute
target="_blank"
and
action="#{mybean.showpdfinnewtab()}"
and
update="idofelementtoupdate"
or
update="@all"
which have never tried. summary:
<p:commandlink action="#{mybean.showpdfinnewtab()}" target="_blank" value="click me" update="@all" />
pdf handling: pdf handling balusc
Comments
Post a Comment