jsf - Primefaces dataTable redirect to a new tab on row select event -


so, have datatable :

<p:datatable id="distributiongroupstable" selectionmode="single"  scrollable="true" scrollheight="600"          selection="#{managedatasetgroupbean.selecteddatasetgroup}" rowkey="#{dg.datasetgroupid}"          value="#{managedatasetgroupbean.datasetgroups}" var="dg"  sortby="#{dg.datasetgroupid}"         sortorder="descending">          <p:ajax event="rowselect" listener="#{managedatasetgroupbean.redirectlistener}"             update="distributiongroupstable" /> 

the redirect listener is:

public void redirectlistener() {     configurablenavigationhandler nh = (configurablenavigationhandler) facescontext.getcurrentinstance().getapplication().getnavigationhandler();     nh.performnavigation("modify_dataset_group?faces-redirect=true&id=" + selecteddatasetgroup.getdatasetgroupid());     selecteddatasetgroup = null; } 

and form set to: < h:form target="_blank" />.

if place command button ajax false, redirect new tab. but, clicking on row in table redirects in same tab, , want redirect in new one. ideas how implement that?


Comments