• 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
Re: Component caching?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Component caching?


  • Subject: Re: Component caching?
  • From: Mark Wardle <email@hidden>
  • Date: Tue, 11 Nov 2014 16:17:22 +0000

Thanks Chuck,

I’ve replaced the component with a barebones stateless non-synchronising component and it works. Must be something odd with the ERDCustomEditComponent - I was using D2W to fetch some D2W rules relating to what to display but clearly this didn’t work properly.

Mark

On 10 Nov 2014, at 19:56, Chuck Hill <email@hidden> wrote:

If it is only one value getting cached, then that is not it.  So you subclassed ERDCustomEditComponent into a stateless component?  Did you implement public void reset() to clear the value (set to null or empty collection) of ALL instance variables?


Chuck


On 2014-11-08, 1:30 PM, "Mark Wardle" wrote:

Thanks Chuck. Not sure as this is generating intermediary HTML which is then rendered into PDF. The intermediary HTML and therefore the subsequent PDF has incorrect values for this boolean component which is really odd.

It must be something in my display boolean component. I’ll create a basic debugging version and use that instead to see what is going on.

Thanks,

Mark

On 7 Nov 2014, at 21:28, Chuck Hill <email@hidden> wrote:

Could it be this?

public boolean isPageRefreshOnBacktrackEnabled()
Returns whether caching of pages is disabled in the client. If it is, the client does not restore request pages from its cache but re-creates them "from scratch" by resending the URL to the server. This flag is set to true by default.


On 2014-11-07, 12:48 PM, "Mark Wardle" wrote:

Thanks Johann. I’m not caching anything but it is a subclass of ERDCustomEditComponent so perhaps so state information is being cached inappropriately only in production. I might have to try debugging in a production environment.

Mark

On 7 Nov 2014, at 10:20, Johann Werner <email@hidden> wrote:
Hi Mark,
do you cache the binding values within your component? When using stateless components you need to clean any local variables yourself within the reset method.
jw
Am 07.11.2014 um 10:33 schrieb Mark Wardle <email@hidden>:
Hi.  I’m generating a PDF report :
WOComponent page = ERXApplication.application().pageWithName(componentName(), privateContext());
page.takeValueForKey(obj, "object");
page.takeValueForKey(report, "report");
WOResponse response = page.generateResponse();
report.setInterimHtml(response.contentString());
This looks up a named WOComponent and generates the response, storing the HTML and allowing users to fine-tune the HTML in a web-based HTML editor. This has worked perfectly previously.
Now I have added a custom “display boolean” component which is used within the report WOComponent. This is a stateless component but it displays the same value again and again when in production. In development, the component works properly.
It is like the content of the component is being cached inappropriately. I thought component caching was related to caching the contents of the WOD file, not the bindings.
Does anyone have any thoughts? Debugging this on a production machine quite tricky so if anyone can thing of something obvious, I’ll try that first!
Thanks,
Mark


_______________________________________________
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


 _______________________________________________
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

References: 
 >Component caching? (From: Mark Wardle <email@hidden>)
 >Re: Component caching? (From: Johann Werner <email@hidden>)
 >Re: Component caching? (From: Mark Wardle <email@hidden>)
 >Re: Component caching? (From: Chuck Hill <email@hidden>)
 >Re: Component caching? (From: Mark Wardle <email@hidden>)
 >Re: Component caching? (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: limiting a textfield to numbers
  • Next by Date: Jenkins login
  • Previous by thread: Re: Component caching?
  • Next by thread: Re: Java Certificates applying to WebObjects
  • Index(es):
    • Date
    • Thread