I am using primefaces 5.1, liferay 6.2.0-ga2 and JSF2. I have a page with button. When I press right-click a context menu with one menuitem is displayed. That menuitem must open a new tab, but it doesn't.
<p:commandButton id="viewUnassignedCase"
action="application-container" styleClass="icon fa fa-eye">
<f:setPropertyActionListener
target="#{applicationManagementBean.application}"
value="#{unassignedCase}" />
<f:setPropertyActionListener
target="#{applicationManagementBean.activeIndexTab}" value="0" />
</p:commandButton>
<p:contextMenu for="viewUnassignedCase" id="tableMenu"
widgetVar="tableMenu">
<p:menuitem value="#{caseList['caseManagement.case.newtab']}"
target="_blank"
action="#{applicationManagementBean.openNewTabDetail(unassignedCase)}">
</p:menuitem>
</p:contextMenu>
and the bean
public String openNewTabDetail(final FlexibleDomain application)
{
setApplication(application);
return "application-container";
}
How can I fix it?