• 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
Re: How do I switch the parent page after submitting AMD
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I switch the parent page after submitting AMD


  • Subject: Re: How do I switch the parent page after submitting AMD
  • From: Johann Werner <email@hidden>
  • Date: Fri, 13 Apr 2012 08:27:41 +0200

From where does this exception originate? ERXRedirect doesn't use ERXWOContext nor does it cast to it (at least in my code). Have your tried to set a breakpoint in the constructor of WOContext to see where it has been created?

jw


Am 13.04.2012 um 03:36 schrieb James Cicenia:

Ok -

The redirect crashes with a cast error:
java.lang.ClassCastException: com.webobjects.appserver.WOContext cannot be cast to er.extensions.appserver.ERXWOContext
[2012-4-12 20:33:47 CDT] <WorkerThread0> java.lang.ClassCastException: com.webobjects.appserver.WOContext cannot be cast to er.extensions.appserver.ERXWOContext

Why would the appserver be WOContext? I thought ERXWOContext gets loaded on startup?

Thanks
James



On Apr 12, 2012, at 5:10 PM, Johann Werner wrote:

ERXRedirect should work as it is. Alternatively you could try AjaxUtils.redirectTo() which does pretty the same.

public WOActionResults myAjaxAction() {
  ERXRedirect redirect = pageWithName(ERXRedirect.class);
  redirect.setComponent(pageWithName(MyPageToGo.class));
  return redirect;
}


Am 12.04.2012 um 23:47 schrieb James Cicenia:

I don't see any isJavascriptRedirectEnabled.

Am I supposed to anything special in the ModalBox besides just the action binding in Submit?

Thanks

James Cicenia 
cell: 773.398.4649


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
  • Follow-Ups:
    • Re: How do I switch the parent page after submitting AMD -- (Cast Exception?)
      • From: James Cicenia <email@hidden>
References: 
 >How do I switch the parent page after submitting AMD (From: James Cicenia <email@hidden>)
 >Re: How do I switch the parent page after submitting AMD (From: Johann Werner <email@hidden>)
 >Re: How do I switch the parent page after submitting AMD (From: James Cicenia <email@hidden>)
 >Re: How do I switch the parent page after submitting AMD (From: David LeBer <email@hidden>)
 >Re: How do I switch the parent page after submitting AMD (From: James Cicenia <email@hidden>)
 >Re: How do I switch the parent page after submitting AMD (From: Johann Werner <email@hidden>)
 >Re: How do I switch the parent page after submitting AMD (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: newbie question AjaxSubmitButton and JQuery function
  • Next by Date: WO 2012 by Apple?
  • Previous by thread: Re: How do I switch the parent page after submitting AMD
  • Next by thread: Re: How do I switch the parent page after submitting AMD -- (Cast Exception?)
  • Index(es):
    • Date
    • Thread