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
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
--- 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
--- 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
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
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
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
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
--- 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
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
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
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
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
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
14 matches
Mail list logo