Re: Theorical Question of performActionNamed()
Re: Theorical Question of performActionNamed()
- Subject: Re: Theorical Question of performActionNamed()
- From: Pascal Robert <email@hidden>
- Date: Tue, 17 Feb 2009 12:57:29 -0500
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
-------------------------------------------------------
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden