[
http://jira.jboss.com/jira/browse/RF-1099?page=comments#action_12386198 ]
Andreas Dangel commented on RF-1099:
------------------------------------
Hello Anton,
Amit has left the project, so I want to proceed with this open problem.
The problem that we encounter is the following: In the Bean above the downloadExcelFile()
action method (with the FacesContext.getCurrentInstance().responseComplete(); statement)
is called again in the next ajax action AFTER a user has clicked on the link to download
the excel file (this works fine)
It looks like this event is "remembered" and the next time the user for example
selects any selectbox with ajax requests this method downloadExcelFile is called again
(and has the effect, because of the responseComplete-stament, that the result for the user
is a "blanc" screen...)
The very interesting is that when I click on a component that is in the source xhtml file
after the download link, then the downloadExcelFile method is called BEFORE the really
wanted action method....
Somehow this event is "saved" and during the next Ajax request performed (here
wlways 2 action method are called - the right one and the unwanted "download"
event that was performed before).
This behaviour has to do with the responseComplete() method. Somewhere the event for
clicking on the link is passed in the following ajax call. A "normal" (no
a4j-action) jsf action afterwords works fine...
If you want I can provide debugging informations for this behaviour.
Regards,
Andreas
In case of AJAX calls it is calling the methods which it should not
be calling
------------------------------------------------------------------------------
Key: RF-1099
URL:
http://jira.jboss.com/jira/browse/RF-1099
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.0.0, 3.1.0
Environment: Weblogic 9.2, IE 6.0
Reporter: Amit Agrawal
Fix For: 3.1.3
Attachments: excel.xhtml, ReportBean.java, reports.xhtml
Hi,
I have a page in which I have some select boxes, check boxes and option to download excel
file.
Whenever the page is getting rendred by clcking any component on the page it calls the
method for download excel file as well which is definitely not desired.
As this method has FacesContext.getCurrentInstance().responseComplete(); so the response
terminates abruptly.
I have attched the code snippet for it. kindly suggest how do I stop calling of this
method all the time.
Thanks in Advance,
Amit
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira