• 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
Debugging ERJavaMail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debugging ERJavaMail


  • Subject: Debugging ERJavaMail
  • From: Ramsey Gurley <email@hidden>
  • Date: Wed, 15 Oct 2008 14:34:57 -0400

Hi everyone,

I'm attempting to repair the ERJavaMail bug that causes the context jumping mentioned in the Gotchas section on the wiki:

http://wiki.objectstyle.org/confluence/display/WO/Project+WONDER-Frameworks-ERJavaMail

Since I'm using D2W pages, the workaround mentioned will not suffice.  I narrowed the problem down to WOComponent's generateResponse() method caching the page and subsequently incrementing the contextID as the source of the issue.  By overriding the appendToResponse and calling generateResponse, I discovered that all the good stuff happens before appendToResponse is called and everything like setting cookies and backtrack caching and contextID incrementing that we don't want happening occurs afterward.

So... since there's no source available for WOComponent, I stepped through the generateResponse method with the debugger and I've managed to create a working solution.  I guess what I'm getting around to asking here is... does anyone see anything obvious that I've overlooked.  I'd like to get this patched and kill that bug once and for all :-)

Any comments/suggestions?

Ramsey

public static WOResponse generateResponseWithoutCaching(WOComponent component) {
WOContext context = component.context();
WOResponse response = WOApplication.application().createResponseInContext(context);
context.deleteAllElementIDComponents();
if(!component.equals(context._pageElement())) {
context._setPageChanged(true);
context._setPageElement(component);
context._setCurrentComponent(component);
}
component.appendToResponse(response, context);
return response;
}


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Prev by Date: Re: AjaxSlider
  • Next by Date: EO Caching with global id 'fetching'
  • Previous by thread: Re: _rewriteURL, Tomcat and AjaxUpdateLink
  • Next by thread: EO Caching with global id 'fetching'
  • Index(es):
    • Date
    • Thread