You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Rogerio Pereira <ro...@gmail.com> on 2006/05/04 21:52:46 UTC
how update an window from another window
I have a popup window that must update the page with some dataTables in the
parent window when i click on close button, how can i do it?
I tried:
window.opener.document.forms[0].submit()
and the dataTable isn't updated
window.opener.location.reload()
but this method calls shows a message box about re-submiting data all the
time
Any idea?
--
Yours truly (Atenciosamente),
Rogério
Re: how update an window from another window
Posted by Jana Parvanova <ja...@sirma.bg>.
You'd better refer the form with its concrete name:
window.opener.document.forms['myform'] or window.opener.document.myform or
some thing like this in order to be sure u submit the proper form.
If u look into the HTML of the JSF page u may notice there are more than one
form.
----- Original Message -----
From: "Rogerio Pereira" <ro...@gmail.com>
To: "MyFaces Discussion" <us...@myfaces.apache.org>
Sent: Thursday, May 04, 2006 10:52 PM
Subject: how update an window from another window
I have a popup window that must update the page with some dataTables in the
parent window when i click on close button, how can i do it?
I tried:
window.opener.document.forms[0].submit()
and the dataTable isn't updated
window.opener.location.reload()
but this method calls shows a message box about re-submiting data all the
time
Any idea?
--
Yours truly (Atenciosamente),
Rogйrio