Direct Actions Question
Direct Actions Question
- Subject: Direct Actions Question
- From: Fred Shurtleff <email@hidden>
- Date: Wed, 07 Mar 2007 12:17:11 -0500
Hello,
I have ported an PBProj/Xcode application over to Eclipse. This
application has been coded to use Direct Actions; however when I run
this application it fails because it cannot resolve a default 'action
class'. Following are the details.
Application.java sets direct actions as default:
WORequestHandler directActionRequestHandler =
requestHandlerForKey("wa");
setDefaultRequestHandler(directActionRequestHandler);
DirectAction.java specifies the default action:
public WOActionResults defaultAction() {
return pageWithName("Main");
When I run the app, an ErrorPage is displayed(NOT Main page), and the
Console displays the following error:
<com.webobjects.appserver._private.WODirectActionRequestHandler>:
Exception while handling action named "default" on action class "null"
:com.webobjects.foundation.NSForwardException
[com.webobjects.appserver._private.WODynamicElementCreationException] null
[2007-03-06 10:11:03 EST] <WorkerThread0>
com.webobjects.foundation.NSForwardException for
com.webobjects.appserver._private.WODynamicElementCreationException:
<com.webobjects.appserver._private.WOImageButton> 'Either a component
action or a direct action must be specified.'
This error completely puzzles me because my understanding is that the
'defaultAction' method of 'DirectAction' class is called by the
WebObjects framework when you first connect to the application. And this
class is definitely present in the application, so I cannot understand
why it is reporting an "action class "null", or in other words, is not
recognizing the (bootstrap)DirectAction class.
Can anyone see what I am missing here, or suggest how to debug this problem?
Thanks in advance for any help.
_______________________________________________
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