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

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -