Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Primefaces open page in new tab on button click

Tags:

jsf

primefaces

I have this

<h:outputLink value="http://.....index.html"
target="_blank">open</h:outputLink>

but it shows like link. How can I create this like button? I need button "open". When I press to this button I need open my link in new tab of browser.

like image 405
user5620472 Avatar asked Dec 08 '16 05:12

user5620472


1 Answers

Please mention your PF version we also used like below and it worked in older version Try it let us know

<p:button  value="Open" href="http://.....index.html" target="_blank" />
like image 150
Subodh Joshi Avatar answered Oct 23 '22 05:10

Subodh Joshi