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
>>
>>
>>
>> On Apr 12, 2012, at 2:41 PM, David LeBer wrote:
>>
>>> I think you need to set: isJavascriptRedirectEnabled to true on the
>>> ERXRedirect.
>>>
>>> D
>>>
>>> --
>>> David LeBer
>>> Codeferous Software
>>>
>>> On 2012-04-12, at 3:16 PM, James Cicenia wrote:
>>>
>>>> Hmmm, i am getting no submission still.
>>>>
>>>> I launch a standard AMD from AMDO.
>>>> The following is my AjaxSubmitButton bindings:
>>>>
>>>> SubmitBtn: AjaxSubmitButton {
>>>> action = saveAndSubmitChanges;
>>>> value = "Save";
>>>> name = "SaveAndSubmit";
>>>> onClick = "Element.show('busy1')";
>>>> id = "wiz-submit";
>>>> onComplete = "function(x){Element.hide('busy1')}";
>>>> }
>>>>
>>>>
>>>> And this is the basic action method:
>>>>
>>>> CharterEdit nextPage = (CharterEdit)
>>>> pageWithName("CharterEdit");
>>>> EOEditingContext peerEC = ERXEC.newEditingContext();
>>>> nextPage.setEditingContext(peerEC);
>>>> nextPage.setItem( theNewProjectItem);
>>>>
>>>> ERXRedirect redirect =
>>>> (ERXRedirect)pageWithName(ERXRedirect.class.getName());
>>>> redirect.setComponent(nextPage);
>>>> return redirect ;
>>>>
>>>> Anything obvious?
>>>> Thanks
>>>>
>>>> James
>>>>
>>>> On Apr 12, 2012, at 1:06 PM, Johann Werner wrote:
>>>>
>>>>> ERXRedirect
>>>>
>>>> _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list ([email protected])
>>>> Help/Unsubscribe/Update your Subscription:
>>>> https://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]