Re: [S2] struts2 validation for only one method in action

2007-02-25 Thread reijnemans
cilquirm wrote: > > I believe you can use validation annotation to specify validation routines > at the method level. > > > > > ros wrote: >> >> Hi! >> >> How to configure struts2 validation for only one method in action? >> >> Thanks. >> > > You can disable one action with the annot

Re: [S2] struts2 validation for only one method in action

2007-02-22 Thread Allen Gilliland
Dale Newfield wrote: Allen Gilliland wrote: Would you mind sharing a couple details about how you have it configured, because if it's working for you then I suppose I must be doing something wrong? I am using Struts 2.0.5. Sure. I'll just mirror your snippets with my own. I am also using

Re: [S2] struts2 validation for only one method in action

2007-02-22 Thread Dale Newfield
Allen Gilliland wrote: Would you mind sharing a couple details about how you have it configured, because if it's working for you then I suppose I must be doing something wrong? I am using Struts 2.0.5. Sure. I'll just mirror your snippets with my own. I am also using 2.0.5. What I have in

Re: [S2] struts2 validation for only one method in action

2007-02-22 Thread Allen Gilliland
Dale Newfield wrote: Allen Gilliland wrote: I tried out using the validation annotations to only validate a specific action method but the result is the same, it just does the validation on all methods :/ I use the ActionName-methodName-validation.xml technique. Would you mind sharing a c

Re: [S2] struts2 validation for only one method in action

2007-02-22 Thread Dale Newfield
Allen Gilliland wrote: I tried out using the validation annotations to only validate a specific action method but the result is the same, it just does the validation on all methods :/ I use the ActionName-methodName-validation.xml technique. Just because the ActionName-validation.xml file is

Re: [S2] struts2 validation for only one method in action

2007-02-22 Thread Allen Gilliland
I tried out using the validation annotations to only validate a specific action method but the result is the same, it just does the validation on all methods :/ This is what I tried ... @Validation() public class MyAction extends ActionSupport { ... yada yada ... public String execute()

Re: [S2] struts2 validation for only one method in action

2007-02-22 Thread Allen Gilliland
Allen Gilliland wrote: Do you have a link to some docs on how to use annotations to specify validation rules? I haven't seen anything about that yet. ack, never mind, i see the link now :/ http://struts.apache.org/2.x/docs/validation-annotation.html I am attempting to do the same thing

Re: [S2] struts2 validation for only one method in action

2007-02-22 Thread Allen Gilliland
Do you have a link to some docs on how to use annotations to specify validation rules? I haven't seen anything about that yet. I am attempting to do the same thing and it definitely isn't working properly. If you simply use a validator for the entire Action defined in ActionName-validation.x

Re: [S2] struts2 validation for only one method in action

2007-02-21 Thread ros
Java Script validation fro button disabled by ros wrote: > > If I have in one form DELETE and SAVE buttons, how to turn off client side > validation for DELETE button? > -- View this message in context: http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267302.html

Re: [S2] struts2 validation for only one method in action

2007-02-21 Thread ros
I assume for action: public class TicketAction extends com.opensymphony.xwork2.ActionSupport { ... public string save() { ... } ... } the file name should be TicketAction-save-validation.xml ??? File with such name is ignored on form submit. Only TicketAction-validation.xml is valid file name

Re: [S2] struts2 validation for only one method in action

2007-02-21 Thread André Faria
Ok, but what about annotations without xmls? Musachy Barroso escreveu: See here: http://struts.apache.org/2.x/docs/validation.html you can add a file ActionName-MethodName-validation.xml with the validation for that method. regards musachy On 2/21/07, cilquirm <[EMAIL PROTECTED]> wrote:

Re: [S2] struts2 validation for only one method in action

2007-02-21 Thread Musachy Barroso
See here: http://struts.apache.org/2.x/docs/validation.html you can add a file ActionName-MethodName-validation.xml with the validation for that method. regards musachy On 2/21/07, cilquirm <[EMAIL PROTECTED]> wrote: I believe you can use validation annotation to specify validation routines

Re: [S2] struts2 validation for only one method in action

2007-02-21 Thread cilquirm
I believe you can use validation annotation to specify validation routines at the method level. ros wrote: > > Hi! > > How to configure struts2 validation for only one method in action? > > Thanks. > -- View this message in context: http://www.nabble.com/struts2-validation-for-only-one-