Identical requests make my csv component always returns the same content
Identical requests make my csv component always returns the same content
- Subject: Identical requests make my csv component always returns the same content
- From: "Yung-Luen Lan" <email@hidden>
- Date: Sun, 14 Sep 2008 03:24:31 +0800
Hi folks,
I have a page with a list of data entry using ERXDisplayGroup and a
"Download Report" link which returns a csv-formatted detail of
selected entries.
The link bound to an action looked like:
public WOComponent generateReportFile() {
CSVReport n = pageWithName(CSVReport.class);
n.setDataEntries(selectedEntriesArray());
return n;
}
When user clicked a data entry in the list, I'll toggle it in
selectedEntriesArray using Ajax framework in Wonder.
When the first time user selects some entries and download the report
file, it's fine.
However, no matter how the user modify the selection set after the
first download, they can only get files with the same content as the
first downloaded one.
After investigate this problem, I find that the generateReportFile()
action were called only once at the first click of my link. Seems that
WO cached the component and return it without invoke my action because
those requests are identical. (I use Ajax so there's no whole page
refresh, I guess this is the reason why I change the selection set but
still got identical requests.)
Is there any way to avoid WO cache my component without invoke my action?
Regards,
yllan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden