HMM.. again it happened... I added the code bellow also into a another
WOActionResult method called by a AjaxSubmitButton in a AjaxSelectionList...
but stills it happened... now I dunno what to do.
on desperate moments I just did this in the Application constructor:
I dunno what exactly does.. and if it will do something about it... but now Im
in the phase.. "let's try it all"
setPageRefreshOnBacktrackEnabled(true);
setPageCacheSize(1);
G.
On Dec 3, 2009, at 1:40 PM, [email protected] wrote:
> You're the second person who has mentioned backtrack errors with new Ajax.
> Did something break? You should never get a backtrack error from an Ajax
> request.
>
> Sent from my iPhone
>
> On Dec 3, 2009, at 4:22 AM, "Gustavo Pizano"<[email protected]>
> wrote:
>
>> Hello all.
>>
>> In my app I have so AjaxUpdateContainers which gets updated when pressing
>> some AjaxSubmitButtons , (funny, :) ), now sometimes, when I, clicking the
>> submit butons, I get the you backtrack too far exception, it happens
>> randlmly, it can happen after clicking 10 times the button, or after
>> clicking 5, or sometimes it doesn't even happen.
>>
>> this is what Im doing at the end of the WOActionResult methods,
>>
>>
>> if (this.didBacktrack()){
>> session().defaultEditingContext().revert();
>> // handle and prepare to report errors
>> // this.errors.addObject("Unable to process page after back button was
>> pressed.");
>> return this.context().page();
>> }
>>
>> I read it somewhere in the wiki, but it seems its not working..
>>
>> Any suggestions.?
>>
>> thanks
>>
>> Gustavo
>>
>> _______________________________________________
>> 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/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 ([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]