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 -


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

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -