BTW, you actually don't have to do then full AjaxResponse thing ... That adds some other abilities. I think it's enough to just do AjaxUtils.updateMutableUserInfoWithAjaxInfo(response). But wrapping in an AjaxResponse shouldn't hurt anything.

ms

On Jun 21, 2007, at 7:38 AM, Mike Schrag wrote:

As long as you are not returning HTML that contains component actions, I think this will be enough (meaning if you're just fire- and-forget to an action in the background). If you are returning HTML results with component actions in them and replacing page contents with it, you will need to behave like an AjaxUpdateContainer and also add AjaxUtils.setPageReplacementCacheKey(context, id); where "id" is a unique identifier for the updating area on the page. This causes the ajax-specific cache to turn on which will allow component actions to function. But really, you're making your life hard ... Just use AjaxUpdateContainer and AjaxSubmitButton if you get to that point. They do the work so you don't have to.

ms

On Jun 21, 2007, at 5:28 AM, Paul Stringer wrote:

Got it, I was already using ERXSession but I looked again at what I was doing and discovered I was indeed being naive and care free with use of a plain old new WOResponse() with my HTML in. I modified this to an AjaxUtils.createResponse() hopefully I think means people could submit the form to their hearts content without ever seeing the backtrack page.

Paul S

On Jun 20, 2007, at 9:10 PM, webobjects-dev- [EMAIL PROTECTED] wrote:

Keep in mind that your backtrack cache WILL get blown out if you're
not using something like the code in ERXAjaxSession from Ajax
framework.  It will tease you by appearing to work fine, but it's
only a tease.

ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag% 40mdimension.com

This email sent to [EMAIL PROTECTED]


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag% 40mdimension.com

This email sent to [EMAIL PROTECTED]


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to