Category Image Using WebObjects DirectActions


David LeBer has a really useful series of articles to get you started on Direct Actions in WebObjects. Direct Actions provide direct bookmarkable entry points to your applications and provide a mechanism to avoid using sessions for simple tasks. For example, I just implemented some directactions to handle email "opt out" requests since I don't want sessions created for a simple one-click visit to my app for such a trivial task.....

You will find David's DirectAction articles all listed here (in reverse order, so start at part 1 on the bottom of the blog page.)

http://david.codebase.ca/index.php?cat=14

Thanks a lot David. Your articles had me understanding Direct Actions in 10 minutes!

Request Response Loop for Direct Actions
Note also that if you have been spoiled by regular WOComponents and automatic takeValuesForRequest and component invokeAction, then DirectActions do not provide the same level of stateful automation work for you. Apple has a nice article (albeit in WO 4.5 documentation) that explains the difference in behaviour between Component Actions and Direct Actions:

Managing Editing Contexts when using Direct Actions
Regarding this we have some words of wisdom from the WOMs (WebObjects Masters), Chuck Hill and Anjo Krank, on this wo dev list thread . Thanks Anjo and Chuck ... as ever helpful to those on the learning curve!

.. and yet another interesting thread .

Posted: Saturday - August 13, 2005 at 01:38 PM        


Published by