Documentation Archive Developer
Search
[an error occurred while processing this directive] PATH  Documentation > WebObjects 4.5 > WebObjects Reference

Table of Contents

WOActionResults


Adopted by: WOComponent, WOResponse
Declared in: WebObjects/WOResponse.h


Protocol Description


The WOActionResults protocol is the return type for direct actions. As a convenience, direct actions can return either WOComponent objects or WOResponse objects; both of which implement the WOActionResults protocol. This protocol implements only one method: generateResponse.

If you want to return any other class from a direct action, then that class must implement this protocol.



Instance Methods



generateResponse

- (WOResponse *)generateResponse

Returns a response object. WOResponse's implementation of this method returns the receiver. WOComponent's implementation of this method calls appendToResponse:inContext: on itself and all children components in its template and returns the result as a WOResponse object. If you want to return any other class from a direct action, then that class must implement this method.


Table of Contents