Thread: [Webwork-devel] action chaining
Brought to you by:
baldree,
rickardoberg
From: Matt B. <ma...@sm...> - 2002-06-08 02:23:42
|
I think I'm ready to go ahead and implement action chaining feature. If you are interested in the discussion, you can visit the thread below. I'll get this done and committed soon for others to comment and test drive it. Thanks to Pat, Jason, and Aapo for their discussion contributions. You gotta like JIRA :). http://opensource.atlassian.com/projects/webwork/secure/ViewIssue.jspa?id=10 000 -Matt |
From: <ma...@sm...> - 2002-06-13 17:26:57
|
I implemented a preliminary version of action chaining. It is available in CVS with a simple test case. This has not been extensively tested so *beware*. I'm looking for early testers. The basic logic is the following: 1. Setup your chain in your view mapping. 2. The dispatcher will walk the chain as long as each action returns another alias action. This will continue until a non-action, usually a view, is returned. 3. Each action will first be set via the context and then the previous action's attributes will be copied to the current action if applicable. Enjoy! -Matt |
From: Patrick L. <pli...@ho...> - 2002-06-14 20:28:00
|
Matt, This doesn't appear to be working for cases such as the follow (which I used extensively before action chaining, and i thought it would still work now too, but maybe not): Details.action=paws.Details Details.success=details.jsp EditMetadata.action=paws.metadata.EditMetadata EditMetadata.error=edit.jsp EditMetadata.success=Details.action EditMetadata and Details both extends AbstractPAWSAction, which looks like this (get/set for the following): id title language creator ...etc EditMetadata and Details both don't have any extra properties worth mentioning in this example. Now EditMetadata.doExecute() is called and returns SUCCESS, but then the browser gets a blank page at http://localhost/paws/csh/EditMetadata.action and the console shows this error: java.lang.IllegalArgumentException: No error view found for action Details at webwork.dispatcher.ConfigurationViewMapping.getView(ConfigurationViewMapping .java:87) at webwork.dispatcher.ConfigurationViewMapping.getView(ConfigurationViewMapping .java:85) at webwork.dispatcher.CachingViewMapping.getView(CachingViewMapping.java:47) at webwork.dispatcher.DefaultViewMapping.getView(DefaultViewMapping.java:35) at webwork.dispatcher.ServletDispatcher.getView(ServletDispatcher.java:336) at webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:258) I added "Details.error=details.jsp" and instead of getting the error, I got returned to details.jsp just fine, except that all the properties were null so errors were all over the place. Any idea what's going on here? -Pat ----- Original Message ----- From: <ma...@sm...> To: <web...@li...>; <web...@li...> Sent: Thursday, June 13, 2002 10:26 AM Subject: [Webwork-devel] action chaining > I implemented a preliminary version of action chaining. > It is available in CVS with a simple test case. This > has not been extensively tested so *beware*. I'm > looking for early testers. > > The basic logic is the following: > > 1. Setup your chain in your view mapping. > 2. The dispatcher will walk the chain as long as each > action returns another alias action. This will continue > until a non-action, usually a view, is returned. > 3. Each action will first be set via the context and > then the previous action's attributes will be copied to > the current action if applicable. > > Enjoy! > > -Matt > > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink > > _______________________________________________ > Webwork-devel mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webwork-devel > |
From: Mike Cannon-B. <mi...@at...> - 2002-06-08 03:42:44
|
FYI (I'm not sure if everyone has found this yet) you can vote on issues that you'd like completed, see: http://opensource.atlassian.com/projects/webwork/secure/BrowseProject.jspa?i d=10000&report=popular Clearly currently chained actions and better documentation are the two most important things - if you don't think so, vote for what you want. This sort of list helps the ww developers (who I'm sure only have a limited amount of time like the rest of us!) know what is most important to the most amount of people. Enjoy. -mike |
From: Patrick L. <pli...@ho...> - 2002-06-08 04:35:14
|
Yup, JIRA is very nice to help with project management. Makes sure you don't forget stuff, which is easy in this open source world :) I've asked Mike to enabled reply-by-email comment support on the opensource JIRA instances (WebWork and OpenSymphony) so that discussion is even easier! -Pat ----- Original Message ----- From: "Matt Baldree" <ma...@sm...> To: "Webwork-Developer" <web...@li...> Sent: Friday, June 07, 2002 7:23 PM Subject: [Webwork-devel] action chaining > I think I'm ready to go ahead and implement action chaining feature. If you > are interested in the discussion, you can visit the thread below. I'll get > this done and committed soon for others to comment and test drive it. Thanks > to Pat, Jason, and Aapo for their discussion contributions. You gotta like > JIRA :). > > http://opensource.atlassian.com/projects/webwork/secure/ViewIssue.jspa?id=10 > 000 > > -Matt > > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink > > _______________________________________________ > Webwork-devel mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webwork-devel > |