Hi Matthias, 
The content of the pages are different but the event driven components 
(ValueChangeListener on selectonechoice) are the same. When the pdf is launched 
from the command button on one page then closed and a subsequent event is 
triggered the pdf relaunches. It's not happening with the other page.
 
I've carried out some diagnostic traces and it seems that in the 
APPLY_REQUEST_VALUES phase once the value change events have been handled, the 
action to generate the pdf report is then being executed. It's like the action 
to generate the report has been queued and is never being removed from the 
queue until I navigate away from the page.
 
Thanks,
Elaine
 


[EMAIL PROTECTED] wrote: ----- 


To: "MyFaces Discussion" <[email protected]> 
From: "Matthias Wessendorf" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED] 
Date: 29/07/2008 10:42 
Subject: Re: [Trinidad] fileDownloadActionListener duplicate events 

Hi, 

what is the difference between the two pages? 

-M 

On Mon, Jul 28, 2008 at 7:12 PM,  <[EMAIL PROTECTED]> wrote: 
> Hi, 
> 
> I'm writing an application using Trinidad (1.0.8) and JasperReports (3.0.0). 
> I have two jsps that with two separate backing beans generating the pdf 
> reports. I'm using the tr:fileDownloadActionListener tag to manage the file 
> downloads to the browser. The issue I'm having is that on one of the pages 
> generates the reports with no problems. On the second page, the report 
> initially gets generated successfully, but on subsequent events on the same 
> page (e.g. valueChangeListener events) the report is regenerated and 
> a download dialog box appears. This does not happen on the other page. I've 
> tried calling the renderResponse method at the end of each report generation 
> and event methods, and this has no effect. I've also tried using a response 
> stream to send the report back to the client, and the same issue occurrs. 
> 
> Has anyone had any similar problems? 
> 
> Many thanks, 
> 
> Elaine 
> 



-- 
Matthias Wessendorf 

further stuff: 
blog: http://matthiaswessendorf.wordpress.com/ 
sessions: http://www.slideshare.net/mwessendorf 
mail: matzew-at-apache-dot-org 

Reply via email to