jsf - How to make use of facesContext 's setClientWindow(Window window) method to open new tab from baking bean -
as have read question , answers regards server side redirect of url new client window / tab, found <h:form target="_blank">
best way achieve this, in case cant cause affect other implementations in page. found there setclientwindw() method facescontext, have worked this, can provide solution open new tab using
facescontext.getcurrentinstance().getexternalcontext().setclientwindow(); facescontext.getcurrentinstance().getexternalcontext().redirect(url);
Comments
Post a Comment