Mailing List Message #171
From: Markus Ruggiero (rucotec) <>
Subject: ERXRedirect unknownKeyException???
Date: Sat, 8 May 2021 16:17:55 +0200
To: WebObjects & WOnder Development <>
Signed Data (Text SHA256)
When I transfer to a payment page but this page sees that there is no payment to be collected I want to directly jump further to the Thank You page. Everything is component action, everything happens inside a session.

In my .wo, inside a WOConditional that triggers when there is no payment needed

<webobject name = "noPaymentRequested">
    <p>No payment required at the moment<br /></p>
    <webobject name = "automaticallyContinue" />
</webobject name = "noPaymentRequested”>

<webobject name = "includePayment">
    <webobject name = "paymentPanel" />
</webobject name = "includePayment">

with the binding

automaticallyContinue : ERXRedirect {
    component = thankYouPage;

In my java:

public WOComponent thankYouPage() {

    EOEditingContext ec = invoiceRemoteRequest.editingContext();


    RemoteActionThankYouPage nextPage = pageWithName(RemoteActionThankYouPage.class);
    return nextPage;

And the result:

<$UnknownKeyException message '[<er.extensions.appserver.ERXRedirect name: er.extensions.appserver.ERXRedirect subcomponents: null > valueForKey()]: lookup of unknown key: 'component'.
The WOComponent er.extensions.appserver.ERXRedirect does not have an instance variable of the name component or _component, nor a method of the name component, _component, getComponent, or _getComponent' object '<er.extensions.appserver.ERXRedirect name: er.extensions.appserver.ERXRedirect subcomponents: null >' key 'component'>

Calling the setter is ok, but why is it trying to call a getter? 
What am I missing here?

Thanks a lot

Markus Ruggiero

rucotec GmbH                        web
Steinenvorstadt 79                email
4051 Basel / Switzerland         mobile +41 79 508 4701

Content Unaltered as verified By:
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster