On 2009/02/17, at 17:47, Gustavo Pizano wrote:

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.

I'm guessing with that method it won't work beacuse you're not calling super.performActionNamed(). The super method is will find your action method and call it.

Just remove that method from your direct action class.


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 ?

To use a binding like directActionNamed= "whatever" your direct action class must be called DirectAction.java (which is the default action class). To use a direct action in your Action.java you should use directActionNamed= "Action/whatever".


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/pfca%40mega.ist.utl.pt

This email sent to [email protected]

Paulo F. Andrade






Paulo F. Andrade






 _______________________________________________
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