Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 56418 invoked from network); 20 Nov 2005 16:21:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Nov 2005 16:21:58 -0000 Received: (qmail 72834 invoked by uid 500); 20 Nov 2005 16:21:55 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 71963 invoked by uid 500); 20 Nov 2005 16:21:52 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 71952 invoked by uid 99); 20 Nov 2005 16:21:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Nov 2005 08:21:52 -0800 Received-SPF: pass (asf.osuosl.org: local policy) Received: from [195.158.54.145] (HELO mail.c-ware.de) (195.158.54.145) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Nov 2005 08:23:25 -0800 Received: (qmail 27029 invoked from network); 20 Nov 2005 15:40:55 -0000 Received: from unknown (HELO PORTOS) (84.167.86.37) by 0 with SMTP; 20 Nov 2005 15:40:55 -0000 From: "Christofer Dutz" To: Subject: AW: [CForms] Dynamically opening popup with action. Date: Sun, 20 Nov 2005 17:21:23 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <437E0684.4040903@apache.org> Thread-Index: AcXsWrlNMWQIG5U/RBCDOEf1ebz/6QBk2EeQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Checked: Checked by ClamAV on apache.org Message-Id: <20051120162325.D038F10FB2B0@asf.osuosl.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Sylvain, Thanks again for your reply. But unfortunately I didn't seem to fully understand the way this should work. I set the target to "_blank" ... so = far so good, and then I reset it again ... but what for?=20 Could you illustrate your example a little more? Please :) Chris -----Urspr=FCngliche Nachricht----- Von: Sylvain Wallez [mailto:sylvain@apache.org]=20 Gesendet: Freitag, 18. November 2005 17:51 An: users@cocoon.apache.org Betreff: Re: [CForms] Dynamically opening popup with action. Christofer Dutz wrote: > > Hi =85 I am currently trying to solve a thing I couldn=92t find any=20 > satisfying solution for. > > I have a repeater in which every row has a checkbox. At the bottom of=20 > the list I have a drop-down-list in which I can select one of the=20 > actions =93delete selected=94, =93print selected=94 and =93export = selected to=20 > Excel=94. Next to this I have an action button calling a Java class=20 > handling everything. So far so good. > > My actual problem now is that if I select delete the deletion is=20 > executed and the form is simply redisplayed =85 everything works fine=20 > here. If I select one of the other options I have to display a popup=20 > containing the desired report. How would the prettiest way to do this=20 > look like? > What you need is to post the form to a different target (e.g. _blank for = a new window), and reset the form's target right after so that=20 subsequent actions continue in the main page. Out of my memory, this is=20 something like: Notice the delay before restoring the form's target, otherwise you=20 sometimes run in some concurrency problems where the target is reset=20 before the new window is created. > > I created my Java class that way that the methods used simply return=20 > the name of the pipeline, which should be displayed. If this is null = =85=20 > no popup should be created, if it is not null =85 a popup should = appear=20 > =85 any ideas? > Uh? Where is that Java class? Sylvain --=20 Sylvain Wallez Anyware Technologies http://people.apache.org/~sylvain http://www.anyware-tech.com Apache Software Foundation Member Research & Technology Director --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org