Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 98768 invoked from network); 17 Nov 2006 12:36:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Nov 2006 12:36:38 -0000 Received: (qmail 29020 invoked by uid 500); 17 Nov 2006 12:36:41 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 28981 invoked by uid 500); 17 Nov 2006 12:36:40 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 28965 invoked by uid 99); 17 Nov 2006 12:36:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Nov 2006 04:36:40 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of David.Delbecq@oma.be designates 193.190.231.71 as permitted sender) Received: from [193.190.231.71] (HELO bonnie.oma.be) (193.190.231.71) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Nov 2006 04:36:28 -0800 Received: from [193.190.249.120] (bonnie.oma.be [193.190.231.71]) by bonnie.oma.be (8.11.1 (Revision 1.10) /8.11.1) with ESMTP id kAHCa6o04813 for ; Fri, 17 Nov 2006 12:36:06 GMT Message-ID: <455DACED.8090106@oma.be> Date: Fri, 17 Nov 2006 13:37:01 +0100 From: David Delbecq User-Agent: Thunderbird 1.5.0.7 (X11/20060922) MIME-Version: 1.0 To: MyFaces Discussion Subject: Re: passing parameters to window.open References: <7397965.post@talk.nabble.com> In-Reply-To: <7397965.post@talk.nabble.com> X-Enigmail-Version: 0.94.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, Ty this: 0) layout you page like this
...
...
1) do a javascript 'window.open' like this window.open('','ThePopup','left=220,top=300,width=600,height=250,scrollbars=1,status=1,toolbar=0,resizable=0,menubar=0'); 2) transfert, if needed, using javascript, datas from main form to popup form 3) do a submit of hidden form that has 'target' defined to 'ThePopup' (the form can be hidden either using some css, either by having only hidden fields) viorel.chelaru a �crit : > hi all, > i have a problem with passing parameters to window.open; i've searched this > forum , i saw resolvings but non works for me; let me show you my context of > problem: > > i have a jsf page with a commandLink: > onclick="popupSottoscritori()" > > > > > with : > function popupSottoscritori() > { > var wnd = > window.open('/BCO/sottoscritori_jsf.faces','','left=220,top=300,width=600,height=250,scrollbars=1,status=1,toolbar=0,resizable=0,menubar=0'); > wnd.focus(); > } > > the page with the commanLink has a managed bean MB1, and window.open page > has MB2 > > first i don't want the somepage.jsp?param=value because my values are > private...are not to be seen; so i want to use post not get method > > i've tried putting the parameters in request in MB1 function > action="#{MB1.showSottoscritori}" and get in the popup page the params from > request: all are null; > i've tried to user MB2 as a session bean to set the params in MB2 in the > page with the action and then in window.open page to get them from MB2 ; all > values are null > > i tried to use updateActionListerer....to update the MB2 values but all are > null; > > does anyone have an ideea how to pass parameters from a page to window.open > page but with backing beans ? > please help, > Viorel >