Le 09-02-17 à 12:47, Gustavo Pizano a écrit :

Hello, well, I understand that if I set a directAactionNamed= "whatever", in a wo, it will go to the DirectAction and search for the action whateverAction(), am I right?. but somehow that's not happening, I declared this method on the directAction.java,

        @Override
        public WOActionResults performActionNamed(String actionName) {
                // TODO Auto-generated method stub
                return pageWithName(actionName);
        }
 but it gave me an exception that it coudln't find whateverAction.

You should create a method like this :

    public WOActionResults whateverAction() {
        return pageWithName(MyComponent.class.getName());
    }

So I created a "custom" Action.java class extended from ERXDirectAction, and place the method there and it did work, (I was following the Ajax example as a guide to develop my app), I wanted to see what happen, and well it gave me that exception, can somebody explain me in a simple way (im newbiew, yes still) why this behavior ?

Thanks a lot

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/probert%40macti.ca

This email sent to [email protected]


-------------------------------------------------------
Pascal Robert

http://www.macti.ca
http://www.aircourriel.com
http://www.linkedin.com/in/macti

Skype: MacTICanada
AIM/iChat : MacTICanada

_______________________________________________
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]

Reply via email to