Re: Direct action question
David LeBer <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
On 17-Nov-06, at 9:35 AM, Randy Wigginton wrote:
> Using WOBuilder, is there a "nice" way to pass parameters to a
> direct action? I want my app to have bookmarkable URLs in certain
> areas.
Any of the WODynamicElements (WOHyperlink, etc) allow for the easy
creation of DA Urls.
For instance, a WOHyperlink .wod snippet might look like this:
Hyperlink1: WOHyperlink {
name = "david";
actionClass = "DirectAction";
directActionName = "hyper";
}
The resulting URL would look something like this:
/cgi-bin/WebObjects/theapp.woa/wa/hyper?name=david
So it would call the hyperAction in your DirectAction class and pass
it the key value pair of name = david.
--
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://www.codeferous.com
blog: http://david.codeferous.com
--
Toronto Area Cocoa / WebObjects developers group:
http://www.tacow.org