cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christofer Dutz" <>
Subject AW: [CForms] Dynamically opening popup with action.
Date Fri, 18 Nov 2005 18:04:59 GMT
Thank you for your quick reply. 
I will try that as soon as my head cooled down again. Think you saved my
weekend (as far as I had a look at your solution) ;)


-----Ursprüngliche Nachricht-----
Von: Sylvain Wallez [] 
Gesendet: Freitag, 18. November 2005 17:51
Betreff: Re: [CForms] Dynamically opening popup with action.

Christofer Dutz wrote:
> Hi … I am currently trying to solve a thing I couldn’t find any 
> satisfying solution for.
> I have a repeater in which every row has a checkbox. At the bottom of 
> the list I have a drop-down-list in which I can select one of the 
> actions “delete selected”, “print selected” and “export selected to 
> Excel”. Next to this I have an action button calling a Java class 
> handling everything. So far so good.
> My actual problem now is that if I select delete the deletion is 
> executed and the form is simply redisplayed … everything works fine 
> here. If I select one of the other options I have to display a popup 
> containing the desired report. How would the prettiest way to do this 
> 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 
subsequent actions continue in the main page. Out of my memory, this is 
something like:

<ft:widget id="print">
<fi:styling onclick="form_getForm(this).target='_blank'; 
form_submitForm(this); var input = this; setTimeout(10, 
function(){form.getForm(this).target='')}); return false"/>

Notice the delay before restoring the form's target, otherwise you 
sometimes run in some concurrency problems where the target is reset 
before the new window is created.
> I created my Java class that way that the methods used simply return 
> the name of the pipeline, which should be displayed. If this is null … 
> no popup should be created, if it is not null … a popup should appear 
> … any ideas?

Uh? Where is that Java class?


Sylvain Wallez                        Anyware Technologies
Apache Software Foundation Member     Research & Technology Director

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message