Toby Hede wrote:

> I have a couple of queries about command driven actions.
> 
> My commands are working fine, I implement CommandDriven, but I am 
> finding a couple of things:
> - parameters are not being set


Hm.. they should be... strange..


> - validation is not occurring


The current code only calls validation if no command is set. Hm.. maybe 
this should be changed... what do ya'll think?


> I have overcome these issues by implmenting Parameter aware to retirve 
> parameters manually and calling doValidate from my doXxx command 
> implementation.

> 
> Is this normal? Does making an action CommandDriven over ride these 
> features? Is there something I am missing?


I'm using CommandDriven with parameters and it's working just fine.. 
have you looked at any of the examples? They seem to work just fine with 
this.


> My other issue is that I would like to chain actions together somehow, 
> and I was wondering how this is achieved?


Three ways (AFAIK). Either by setting an action as the result of another 
action, by having one action internally delegate to the chain of actions 
that you want to execute, or by having each action delegate explicitly 
to the next action. I would prefer the second option if possible.


/Rickard


-- 
Rickard �berg
Author of "Mastering RMI"
Chief Architect, TheServerSide.com
   The Middleware Company - We Build Experts!


_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to