This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Problem with popup window. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with popup window." Watch "Problem with popup window." New topic

Problem with popup window.

Bajrang Asthana
Ranch Hand

Joined: May 24, 2011
Posts: 32
there is a link on compose.jsf page. when I clicked on link it opens a popup window (created by javascript). There is number of check boxes and one link "Done" under a form in pop up window. A user can select number of check boxes and when he clicks on link done, browser submit the form to server.

I want that the response (after submitting the form of popup window) into parent window and popup window should be closed . I have tried for this. The code works fine in IE and Firefox. There is problem with Google chrome browser where it opens another window instead of parent window.

I am pasting below my javascript-

function set_form_target()
elem = document.getElementById("addressbook");// form id;// I have set the name of parent window using

<h:commandLink id="addContactToList" rendered="#{messageCompose.addressBook.size != 0}"
onclick="set_form_target();" value="Done" >
subject: Problem with popup window.
Similar Threads
refresh parent window on closing of child window
How to close a child window through the servlet?
updating ArrayList on parent from child window
Check if popup window is already open from parent window?
valueUnbound problem