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

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -