How Many Methods Must an Action Walk Down (was Re: Annotation Validation, per method?)

2007-11-07 Thread Ted Husted
On Nov 6, 2007 8:10 PM, Gary Affonso [EMAIL PROTECTED] wrote: For some reason folks new to s2 seem to get it backwards and want to stuff a bunch of Action methods into a single Action class. It's probably because the standard S2/WW validation workflow implies that an Action class will have

Re: How Many Methods Must an Action Walk Down (was Re: Annotation Validation, per method?)

2007-11-07 Thread Gary Affonso
Ted Husted wrote: On Nov 6, 2007 8:10 PM, Gary Affonso [EMAIL PROTECTED] wrote: For some reason folks new to s2 seem to get it backwards and want to stuff a bunch of Action methods into a single Action class. It's probably because the standard S2/WW validation workflow implies that an Action

Re: How Many Methods Must an Action Walk Down (was Re: Annotation Validation, per method?)

2007-11-07 Thread Dave Newton
--- Gary Affonso [EMAIL PROTECTED] wrote: Ted Husted wrote: Meanwhile, in Struts 1 there is a DispatchAction that does much the same thing. From other discussions, I gather that multiple actions per controller is considered a Good Thing on platforms like Ruby on Rails. It's really only a

Re: How Many Methods Must an Action Walk Down (was Re: Annotation Validation, per method?)

2007-11-07 Thread Dave Newton
--- Jeromy Evans [EMAIL PROTECTED] wrote: Dave, does that mean you don't favour one approach over the other? ie. happy with multiple methods per action? I have no clear preference right now. I tend not to have a lot of methods in my actions anyway, but I'll group stuff together when it seems

Re: How Many Methods Must an Action Walk Down (was Re: Annotation Validation, per method?)

2007-11-07 Thread Don Brown
On Nov 8, 2007 12:29 PM, Dave Newton [EMAIL PROTECTED] wrote: --- Gary Affonso [EMAIL PROTECTED] wrote: Look at the Dynamic Method Invocation section, 1/2-2/3 of the way down. Well, that explains it. The wildcard feature seems to come from s1 (which I never used) and the dynamic

Re: How Many Methods Must an Action Walk Down (was Re: Annotation Validation, per method?)

2007-11-07 Thread Jeromy Evans
Dave Newton wrote: Again, not one *method*. That'd be crazy! That's what's being discussed, I'm pretty sure, but with an eye towards a different prepare cycle: the whole Preparable lifecycle makes more sense if there are multiple (request-handling) methods in an Action class. If there's

Re: How Many Methods Must an Action Walk Down (was Re: Annotation Validation, per method?)

2007-11-07 Thread Gary Affonso
Dave Newton wrote: --- Gary Affonso [EMAIL PROTECTED] wrote: Look at the Dynamic Method Invocation section, 1/2-2/3 of the way down. Well, that explains it. The wildcard feature seems to come from s1 (which I never used) and the dynamic method invocation feature wasn't very well

Re: How Many Methods Must an Action Walk Down (was Re: Annotation Validation, per method?)

2007-11-07 Thread Gary Affonso
Dave Newton wrote: Curiously, action!input is not a part of the framework I'm familiarwith. Can you point me to some docs that describe it? http://struts.apache.org/2.x/docs/action-configuration.html Look at the Dynamic Method Invocation section, 1/2-2/3 of the way down. Well, that

Re: How Many Methods Must an Action Walk Down (was Re: Annotation Validation, per method?)

2007-11-07 Thread Dave Newton
--- Gary Affonso [EMAIL PROTECTED] wrote: Look at the Dynamic Method Invocation section, 1/2-2/3 of the way down. Well, that explains it. The wildcard feature seems to come from s1 (which I never used) and the dynamic method invocation feature wasn't very well documented (not even

Re: Annotation Validation, per method?

2007-11-06 Thread Martin Gilday
Validation, per method? i dont know to use anotation but with xml is ClassName-actionAlias_method- validation.xml On 11/5/07, Martin Gilday [EMAIL PROTECTED] wrote: Can you have annotation validation per method? I have put @Validations on both my display and update methods (display shows

Re: Annotation Validation, per method?

2007-11-06 Thread Ted Husted
message - From: Fátima Silveira [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Date: Mon, 5 Nov 2007 17:58:32 +0100 Subject: Re: Annotation Validation, per method? i dont know to use anotation but with xml is ClassName-actionAlias_method- validation.xml On 11/5

Re: Annotation Validation, per method?

2007-11-06 Thread Gary Affonso
Ted Husted wrote: Of course, if you use one-action-method per Action-class, then all the annotations work just fine. +1 on one-action-method per Action class. My personal opinion (after nearly 5 years of heavy WebWork/s2 use) is that this is the best-practice and that multiple action methods

Annotation Validation, per method?

2007-11-05 Thread Martin Gilday
Can you have annotation validation per method? I have put @Validations on both my display and update methods (display shows the record from input), but all of the validation seems to be run at once. Can you achieve this with xml or annotation validation, or am I back to validateInput methods

Re: Annotation Validation, per method?

2007-11-05 Thread Fátima Silveira
i dont know to use anotation but with xml is ClassName-actionAlias_method- validation.xml On 11/5/07, Martin Gilday [EMAIL PROTECTED] wrote: Can you have annotation validation per method? I have put @Validations on both my display and update methods (display shows the record from input