Hi Jerald,

Am 16.12.2009 um 21:12 schrieb Jerald Dawson:

> Hi All
> 
> Is there anything I need to be aware of when I change the default request 
> handler to a direct action request handler in a wonder based app?
> 
> Currently I'm just calling:
> 
> setDefaultRequestHandler (requestHandlerForKey( 
> directActionRequestHandlerKey() ));

that's perfectly fine and sufficient. As the constructor of ERXApplication you 
are subclassing with your Application class is called prior to yours, all 
Wonder magic is done already at that moment ;-)
This is (from ERXApplication)

registerRequestHandler(new ERXDirectActionRequestHandler(), 
directActionRequestHandlerKey());

replaces the 'normal' request handler with the Wonder version. So if you use 
directActionRequestHandlerKey you already get the patched one.

jw

> 
> the my Application objects constructor and I'm wondering if there is anything 
> else I need to be doing.  I'm not having any trouble, just want to make sure 
> I'm doing it correctly still. its been a while since I touched this code (pre 
> wonder integration).
> 
> thx
> 
> -j _______________________________________________
> 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/jw%40oyosys.de
> 
> This email sent to [email protected]
> 


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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