Latest Tutorials| Questions and Answers|Ask Questions?|Site Map

Home Answers Viewqa JSF-Questions how to focus on the new window opened from JSF ?

View Questions and Answers by Category


Have Programming Question? Ask it here!

how to focus on the new window opened from JSF ?
0 Answer(s)      2 years and 8 months ago
Posted in : Java Server Faces Questions

Hi guys,

I have commandLink with action which using javascript to open a new window( Problem is, the new window opens at background behind the current window that user has to look for it. Is there any way to open it at front and focus? Thx in advance!

Here is my code:

public void openTrackDetail() { 

   FacesContext fc = FacesContext.getCurrentInstance();

   String server=getMyServer();

   String jsLink = "'" + server + "', 'trackIDView');";

   JavascriptContext.addJavascriptCall(FacesContext.getCurrentInstance(), jsLink);


View Answers

Related Tutorials/Questions & Answers: