• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Identical requests make my csv component always returns the same content
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Identical requests make my csv component always returns the same content
      • From: Stephane Guyot <email@hidden>
  • Prev by Date: Re: WebObjects Installer CD for Windows
  • Next by Date: Re: Identical requests make my csv component always returns the same content
  • Previous by thread: Re: ERXComponentActionRedirector & storesIDsInCookies?
  • Next by thread: Re: Identical requests make my csv component always returns the same content
  • Index(es):
    • Date
    • Thread