Re: AjaxUtils.redirectTo() and IE7
Re: AjaxUtils.redirectTo() and IE7
- Subject: Re: AjaxUtils.redirectTo() and IE7
- From: Sacha Michel Mallais <email@hidden>
- Date: Tue, 26 Jan 2010 13:36:12 -0800
Closing off this thread.
The issue appears to be caused by using the updateContainerID binding
of an AjaxObserverContainer with a call to AjaxUtils.redirectTo() in
the action method of the observer. The solution is to not use the
binding and instead call AjaxUpdateContainer.updateContainerWithID()
in the cases that redirectTo() is _not_ called.
Basically: updateContainerID binding + AjaxUtils.redirectTo() = pain
A related issue that interfered with my debugging attempts was a bug
in WO that causes ":443" to be appended to some WO-generated URLs.
sacha
On Jan 12, 2010, at 10:17 AM, Sacha Michel Mallais wrote:
Hi all,
Has anyone had any issues with using AjaxUtils.redirectTo() with
IE7? I'm getting this error on each page that uses redirectTo() on
IE7 (typed by hand due to IE7 lameness, please excuse typos):
-----------------------------------------------
Line: 4176
Char: 5
Error: Object doesn't support this property or method
Code: 0
URL: https://test.global-village.net/apps/WebObjects/SMTest.woa/wa/218.0.9.1.1.1.1
-----------------------------------------------
... and the page doesn't redirect, it just sits there, and the rest
of the Ajax on the page no longer works.
The code I use to redirect is:
-----------------------------------------------
public WOComponent sectionRepetitionObserverAction()
{
if (selectedSectionAction.count() > 0)
{
// should only be a single key and value in the dictionary
aSection = (Section)
selectedSectionAction.allKeys().lastObject();
String actionForCurrentSection = (String)
selectedSectionAction.objectForKey(aSection);
if ("Edit Content".equals(actionForCurrentSection))
{
AjaxUtils.redirectTo(editSection());
return null;
}
....
[snip]
-----------------------------------------------
Where editSection() returns an initialized component.
This is under WO 5.4.3, the latest Wonder ("svn up" at 2:00pm Monday).
Anyone have any ideas why this is not working? My client claims it
was working a week or two ago, but I didn't touch any of this stuff,
so I'm even more confused...
sacha
--
Sacha Michel Mallais Senior Developer / President
Global Village Consulting Inc. http://www.global-village.net/
PGP Key ID: 7D757B65 AIM: smallais
"In times of change learners inherit the earth; while the learned find
themselves beautifully equipped to deal with a world that no longer
exists." -- Eric Hoffer
_______________________________________________
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