Re: Question on validation

2008-01-23 Thread Martin Braure de Calignon
Le mercredi 23 janvier 2008 à 11:17 +0200, Andriy Kharchuk a écrit : > You can turn off validation for a specific method by using the > @SkipValidation annotation above your action method. > > http://struts.apache.org/2.x/docs/validation.html > Ok many thanks, I though it works only for validat

Re: Question on validation

2008-01-23 Thread Andriy Kharchuk
You can turn off validation for a specific method by using the @SkipValidation annotation above your action method. http://struts.apache.org/2.x/docs/validation.html 2008/1/21, Martin Braure de Calignon <[EMAIL PROTECTED]>: > > Hello :-), > > I have two questions, the first one is more important

Re: Question on validation

2008-01-21 Thread Martin Braure de Calignon
Le lundi 21 janvier 2008 à 14:35 +0100, Martin Braure de Calignon a écrit : > Hello :-), > > I have two questions, the first one is more important for me : > I have a validation xml files, but I want to validate only if user click > on 'OK' button, and not on 'Cancel'. How to do this ? Do I have

Question on validation

2008-01-21 Thread Martin Braure de Calignon
Hello :-), I have two questions, the first one is more important for me : I have a validation xml files, but I want to validate only if user click on 'OK' button, and not on 'Cancel'. How to do this ? Do I have to make all my fields as expression or fieldexpression and test the value of the submit

Re: Question on validation. ...

2008-01-08 Thread Laurie Harper
Mufaddal Khumri wrote: Hi, Lets say I have an action and some of the properties being set on that action are to be validated which I can do a number of ways. Is there a way in Struts2 to tell the system not to valid the framework the first time the action is accessed: [Turn validation off]

Question on validation. ...

2008-01-07 Thread Mufaddal Khumri
Hi, Lets say I have an action and some of the properties being set on that action are to be validated which I can do a number of ways. Is there a way in Struts2 to tell the system not to valid the framework the first time the action is accessed: [Turn validation off] http://mydomain.com/w

Re: S2.1.1 question on validation ...

2007-11-29 Thread Giovanni Azua
hi, I managed to have it working with the following validation rule: outSamplePeriods At least one Out of Sample Period must be provided it displays the message under the entry but does not display a message on top of the right field name ... how can I have that? TIA, regards, Giovanni G

S2.1.1 question on validation ...

2007-11-28 Thread Giovanni Azua
hi, I am trying to introduce a validation rule that checks that at least one element has been added to an optiontransferselect UI component. I use the expression type validation but does not seem to work ... see the details below. TIA, regards, Giovanni

Re: [S2] question on validation

2007-02-09 Thread Daniel Amadei
Hi Dave, It did not work for the method but worked for the action alias this way: A-alias-validation.xml Thanks a lot for your help again. Daniel 2007/2/10, Dave Newton <[EMAIL PROTECTED]>: --- Daniel Amadei wrote: > My question is: is there a way to configure the > validation for an action t

Re: [S2] question on validation

2007-02-09 Thread Dave Newton
--- Daniel Amadei wrote: > My question is: is there a way to configure the > validation for an action to work just for some > methods and not for others? This is off the top of my head; typical grain-of-salt warnings apply. In addition to tweaking the list of methods that are skipped for the val

[S2] question on validation

2007-02-09 Thread Daniel Amadei
Hi All, Suppose I have an action called a.A with some methods for updating records and other for querying or just redirecting. If I set up the validation file, it works for update but also for the querying and redirection methods, which is not what I want. My question is: is there a way to conf