p:menuitem target="_blank" doesn't open new window

UI Components for JSF
Post Reply
gold
Posts: 2
Joined: 17 Aug 2017, 07:21

17 Aug 2017, 07:29

use Primeface 6.1

Following code:

Code: Select all

<h:form>
    <p:panelMenu style="width:150px">
        <p:submenu label="BBC" >
            <p:menuitem value="Home" url="http://bbc.co.uk" icon="ui-icon-link"  target="_blank" />
        </p:submenu>
    </p:panelMenu>
</h:form>
when menuitem click should open a window/new tab, but it doesn't.

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

17 Aug 2017, 09:26

Is target a supported attribute according to the docs?

gold
Posts: 2
Joined: 17 Aug 2017, 07:21

17 Aug 2017, 11:48

I double checked the 6.1 doc, target is a supported attribute for menuitem, but is it this the correct way to open link in a new tab/window?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 45 guests