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-ERJavaMailSince 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? Ramseypublic 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;
}
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
