RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomAdapterDispatcher.OnActionRequestNotHandled Event

Occurs when the WebSnap application could not execute a requested action.

Pascal
property OnActionRequestNotHandled: TDispatchActionHandledEvent;
C++
__property TDispatchActionHandledEvent OnActionRequestNotHandled;

Write an OnActionRequestNotHandled event handler to provide a response to actions that the adapter components in the application can't execute. This may occur because the adapter dispatcher could not find an adapter to handle the action, or it may occur because the identified adapter was unable to execute the action. 

If the OnActionRequestNotHandled event handler does not set its Handled parameter to true, the adapter dispatcher generates an OnImageRequestNotHandled. If the OnImageRequestNotHandled event handler also does not handle the event, the dispatcher raises an EAdapterDispatcherException exception.

Tip: Use the Response property of the current Web context to access the response message from the OnActionRequestNotHandled event handler. You can obtain a reference to the Web context by calling the global WebContext function.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!