I've created the Validateable Interface and removed the workflow from
ActionSupport (and removed BaseActionSupport, just moved up to
ActionSupport). The DefaultWorkflowInterceptor now does this:

If the Action implements Validateable, it calls "validate()" on it

If the Action implements ValidationAware, it checks if it has any errors
using "hasErrors()". If it does have errors, it returns Action.INPUT.

If it hasn't returned already, it invokes the ActionInvocation to allow
the rest of the Interceptors and the Action to be executed.

Jason

--
Jason Carreira
Technical Architect, Notiva Corp.
phone:  585.240.2793
  fax:  585.272.8118
email:  [EMAIL PROTECTED]
---
Notiva - optimizing trade relationships (tm)
 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to