Re: S2 Validation XML + Bootstrap

2013-05-23 Thread Lukasz Lenart
Have you tried validate="true" in ? It should work, maybe just add Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/23 Frans Thamura : > Hi All > > anyone have idea how to implement validation xml inside s2 > (serverside), and link with bootstrap theme UI. > > the idea is t

Re: S2 validation without API ties

2010-07-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wes, Sorry for the delay in replying... I hadn't noticed that your reply was here. On 4/28/2010 11:49 AM, Wes Wannemacher wrote: > I can understand your desire to remove the dependency of struts, > making your actions reusable. But at the same time,

Re: S2 validation without API ties

2010-04-28 Thread Wes Wannemacher
Chris, There are a few non-struts/xwork-validation plugins that integrate with general purpose validation mechanisms. Off the top of my head, I remember this - https://cwiki.apache.org/confluence/display/WW/OVal+Plugin But, I think there are two distinctly different things you are considering he

Re: S2 validation without API ties

2010-04-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rahul, On 4/27/2010 1:09 AM, Rahul Mohan wrote: > I think the fundamental mechanism of S2 is the configurable interceptor > stack where each interceptor applies itself to the current action based on > the interfaces the action implements. You can st

Re: S2 validation without API ties

2010-04-26 Thread Rahul Mohan
. Lets S2 ( or rather xwork ) take care of the wiring. Essentially, building your framework using the underlying configurable interceptor stack mechanism. Does that answer your question? - Rahul From: Christopher Schultz To: Struts Users Mailing List Date: 27-04-2010 02:29 Subject: Re: S2

Re: S2 validation without API ties

2010-04-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Bump: does anyone have any ideas? Thanks, - -chris On 4/12/2010 4:48 PM, Christopher Schultz wrote: > All, > > It's been a long time since I've posted, and I've got my eye on S2 for > some upcoming work that will share code with a non-web-base

Re: [S2] Validation - globally define regex

2010-01-22 Thread mailtolouis2020-struts
Hi, Could someone tell me does struts2 support it? Regards LV From: "mailtolouis2020-str...@yahoo.com" To: Struts Users Mailing List Sent: Thu, January 21, 2010 12:24:13 PM Subject: [S2] Validation - globally define regex Hello, In struts 1, I can define t

Re: s2: Validation xml file not being used when validating a method

2009-11-18 Thread ben_979
Apparently it isn't working as I expected. I would really like to understand how this works. Here is my form tag: Here is my struts.xml entry: ScheduleDetailAction_update Here is partial contents of my ScheduleDetailAction-ScheduleDetailAction_updateSchedule-validation.xml

Re: s2: Validation xml file not being used when validating a method

2009-11-17 Thread musomesa
e (and not persist) Chris -Original Message- From: Musachy Barroso To: Struts Users Mailing List Sent: Tue, Nov 17, 2009 6:17 pm Subject: Re: s2: Validation xml file not being used when validating a method It can be done like that as well, but, your first attempt should

Re: s2: Validation xml file not being used when validating a method

2009-11-17 Thread ben_979
Thanks for the replies, I have it working now. I think the problem was that the name I used in the form action (ScheduleDetailAction_update) did NOT have a mapping in my struts.xml file. I had assumed that because the method was eventually being called that I had configured everything correctly

Re: s2: Validation xml file not being used when validating a method

2009-11-17 Thread Musachy Barroso
It can be done like that as well, but, your first attempt should be better. The "alias" part is the action name, lets say you have an action like this: /survey/survey-results.jsp /survey/survey.jsp you would need to name the validation file "SurveyA

Re: s2: Validation xml file not being used when validating a method

2009-11-17 Thread ben_979
So it's done strictly by exclusion? I *thought* I had read that the validation could be focused on a specific method through the naming convention of the validation file(s). Is that idea totally wrong? -- View this message in context: http://old.nabble.com/s2%3A-Validation-xml-file-not-being-us

Re: s2: Validation xml file not being used when validating a method

2009-11-17 Thread Oscar
ben_979 escribió: I'm trying to figure out the validation framework, and I don't have a clear understanding from the docs I've read where I'm going wrong, so if someone could point me in the right direction I'd appreciate it. I'm trying to validate ONLY when a particular method of an action clas

Re: S2: Validation not happening

2009-10-01 Thread maestro
For sake of completeness, I have decided to drop the Validation.xml route and go with the plain old java validation. Time is running, and so am I. :) On Tue, Sep 29, 2009 at 1:06 PM, maestro wrote: > I have searched and compared to no avail. > This one has been stumping me for some time now. > I

Re: RE: [S2]Validation with xml file not working

2008-08-15 Thread Stephan Schröder
An: "Struts Users Mailing List" > Betreff: Re: RE: [S2]Validation with xml file not working > About the interceptors on the default stack I don't know how to check > that since it's built in. But "Struts in Action" says that in the > struts-default.xml,

Re: [S2]Validation with xml file not working

2008-08-15 Thread Ylva Degerfeldt
Ok, I found it. But (as the book said) , "validation" comes before "workflow" in the "validationWorkflowStack", so there has to be some other explanation for the exception. /Ylva On Fri, Aug 15, 2008 at 1:59 PM, Torsten Krah <[EMAIL PROTECTED]> wrote: > Am Freitag, 15. August 2008 00:22:01 schrie

Re: [S2]Validation with xml file not working

2008-08-15 Thread Torsten Krah
Am Freitag, 15. August 2008 00:22:01 schrieb Stephan Schröder: > i don't know which interceptors are on your default stack. Does 'workflow' > come after 'validation'? Look into struts-default.xml in the struts-2.x.jar file, there you can see all stacks defined with their interceptors. -- Bitte

Re: RE: [S2]Validation with xml file not working

2008-08-15 Thread Ylva Degerfeldt
ble.) > > Original-Nachricht >> Datum: Thu, 14 Aug 2008 18:38:02 -0700 (PDT) >> Von: Dave Newton <[EMAIL PROTECTED]> >> An: Struts Users Mailing List >> Betreff: RE: [S2]Validation with xml file not working > >> I think he was asking the or

Re: RE: [S2]Validation with xml file not working

2008-08-15 Thread Stephan Schröder
MAIL PROTECTED]> > An: Struts Users Mailing List > Betreff: RE: [S2]Validation with xml file not working > I think he was asking the original poster if *his* stack included those > interceptors in the correct order, since it's his validation that isn't > working pr

RE: [S2]Validation with xml file not working

2008-08-14 Thread Dave Newton
party other than intended recipient. Sender does not > necessarily endorse content contained within this > transmission. > > > > Date: Fri, 15 Aug 2008 00:22:01 +0200 > > From: [EMAIL PROTECTED] > > Subject: Re: [S2]Validation with xml file not working > > To: user@st

RE: [S2]Validation with xml file not working

2008-08-14 Thread Martin Gainty
[EMAIL PROTECTED] > Subject: Re: [S2]Validation with xml file not working > To: user@struts.apache.org > > > What could it be? > > i don't know which interceptors are on your default stack. Does 'workflow' > come after 'validation'? > > /Stephan >

Re: [S2]Validation with xml file not working

2008-08-14 Thread Stephan Schröder
IL PROTECTED]> > An: "Struts Users Mailing List" > Betreff: Re: [S2]Validation with xml file not working > Lukasz, I'm not sure how to check the deployment but I was thinking > that too. (I'm using NetBeans 5.5.1 and Sun App. server.) > > André, it's

Re: [S2]Validation with xml file not working

2008-08-14 Thread Ylva Degerfeldt
Lukasz, I'm not sure how to check the deployment but I was thinking that too. (I'm using NetBeans 5.5.1 and Sun App. server.) André, it's funny you should mention that because I just changed the name From .-validation.xml to -validations.xml because they must have misspelled it in one plac

Re: [S2]Validation with xml file not working

2008-08-14 Thread André Cedik | GDG
Maybe it's just because of the misspelling. If you'd like to do validation this way, your xml-file should be named "NameAndCvAction-validation.xml" without the "s" at the end. Ylva Degerfeldt wrote: > Hi everyone, > > I'm trying to use the Validation framework by creating a file called > NameAndC

Re: [S2]Validation with xml file not working

2008-08-14 Thread Lukasz Lenart
Did you check also the deployment, on the server? Eclipse will not copy other files then Java classes when you will deploy. Check if xml file is in the same package after deploy to the server. Regards -- Lukasz http://www.lenart.org.pl/ --

Re: S2: validation notation on DATE (object that has a Date field)

2008-06-24 Thread Jim Kiley
Have you set the validateAnnotatedMethodOnly property on the validation interceptor in your struts.xml? ( http://struts.apache.org/2.0.11.1/docs/validations-annotation.html) On Tue, Jun 24, 2008 at 10:21 AM, xianwinwin <[EMAIL PROTECTED]> wrote: > > I tried to do something with RequiredFieldValid

Re: S2: validation notation on DATE (object that has a Date field)

2008-06-24 Thread xianwinwin
I tried to do something with RequiredFieldValidator, @Validations( stringLengthFields [EMAIL PROTECTED](type = ValidatorType.SIMPLE, trim = true, minLength="1" , fieldName = "empl.name", message = "required field")}, requiredFields =[EMAIL PROTECTED](type = Validat

Re: S2: validation notation on DATE (object that has a Date field)

2008-06-24 Thread Jim Kiley
Fair enough. Is this something you could solve with a validate() method on your action, assuming that your action is ValidationAware? On Tue, Jun 24, 2008 at 9:45 AM, xianwinwin <[EMAIL PROTECTED]> wrote: > > But that means that ALL objects type Empl will have a mandatory field > called > DOB. I

Re: S2: validation notation on DATE (object that has a Date field)

2008-06-24 Thread xianwinwin
But that means that ALL objects type Empl will have a mandatory field called DOB. I wish to have more flexibility by choosing the mandatory field based on the user's action. Jim Kiley wrote: > > If "empl" is a field on your action, and your JSP references the field as > "empl.date," put the

Re: S2: validation notation on DATE (object that has a Date field)

2008-06-24 Thread Jim Kiley
If "empl" is a field on your action, and your JSP references the field as "empl.date," put the validation on the setter for the date field of Empl, rather than on the action. On Tue, Jun 24, 2008 at 9:06 AM, xianwinwin <[EMAIL PROTECTED]> wrote: > > hi Lukasz > > In your example, you wrote: > > P

Re: S2: validation notation on DATE (object that has a Date field)

2008-06-24 Thread xianwinwin
hi Lukasz In your example, you wrote: Private Date today; @RequiredFieldValidator(message = "Date is required") public Date getToday() { return today; } this works great also in my application, but my question is different, I don't have a field called today, I have an obj

Re: S2: validation notation on DATE (object that has a Date field)

2008-06-23 Thread Lukasz Lenart
Hi, > This also works on my end *BUT* the Date in part of an Object (not a field) Could you show your configuration? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: S2: validation notation on DATE (object that has a Date field)

2008-06-23 Thread xianwinwin
This also works on my end *BUT* the Date in part of an Object (not a field) so I have Employee empl; with Date dob, thank you Lukasz Lenart wrote: > >> I did, and it doesn't work, when I click submit, I immediately get a red >> message next to the required fields...but not next to the dat

Re: S2: validation notation on DATE (object that has a Date field)

2008-06-23 Thread Lukasz Lenart
> I did, and it doesn't work, when I click submit, I immediately get a red > message next to the required fields...but not next to the date. That strange, I made a test and it works, I've annotated at setter level @RequiredFieldValidator(message = "Date is required") public Date getToday(

Re: S2: validation notation on DATE (object that has a Date field)

2008-06-19 Thread xianwinwin
I did, and it doesn't work, when I click submit, I immediately get a red message next to the required fields...but not next to the date. Lukasz Lenart wrote: > > Hi, > > Did you try > @RequiredFieldValidator(type = ValidatorType.SIMPLE, fieldName = > "customfield", message = "You must enter

Re: S2: validation notation on DATE (object that has a Date field)

2008-06-18 Thread Lukasz Lenart
Hi, Did you try @RequiredFieldValidator(type = ValidatorType.SIMPLE, fieldName = "customfield", message = "You must enter a value for field.") ? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROT

RE: [s2] Validation, but not the first time

2008-02-22 Thread Dave Newton
--- "Allen, Daniel" <[EMAIL PROTECTED]> wrote: >/> > > I guess I could manually call Spring from Java code to fill in the > log-in checker class, but this way I can keep Spring entirely out of my > code's [direct] dependencies [...] If there's a simpler way to tell Struts > to use

RE: [s2] Validation, but not the first time

2008-02-22 Thread Allen, Daniel
Yeah, I know, my spelling is terrible in code. All I can say in my defense is that I go back and fix it with Eclipse's refactoring tools at the end, before anyone else at the company has to see it. That doesn't save you poor souls on the user list who are subjected to my interim incompetence, thoug

Re: [s2] Validation, but not the first time

2008-02-22 Thread Dave Newton
--- "Allen, Daniel" <[EMAIL PROTECTED]> wrote: > Is there a way to prevent the validation from firing unless the user is > coming back to it after attempting to log in? By default the validation interceptor won't check a set of action methods, including the "input" method. The easiest thing, IMO,

Re: [S2] Validation

2008-02-18 Thread carmi_cd
i was able to identify the problem it was only in IE,I put the showLoadingText="false" to my save button then it validates correctly before it wasn't able to get the form values in IE. still thanks newton.date. :-) newton.dave wrote: > > --- carmi_cd <[EMAIL PROTECTED]> wrote: >> Hi I have a

Re: [S2] Validation

2008-02-18 Thread Dave Newton
--- carmi_cd <[EMAIL PROTECTED]> wrote: > Hi I have an application in Struts 2, my problem is when > i try to submit the form even if there are values in the > form input box it stills give validation message to the > user to enter values for the required fields. > > here is my form fields. >

Re: [S2] validation annotation problem

2007-10-29 Thread lbastil
please help on this issue. does nobody have any hints? Thank you in advance, basti lbastil wrote: > > I use model driven actions and want to use validation by annotation. > > so I have somethings like: > > @Validation > public Class ...Action implements ...{ > > ... > >@VisitorField

RE: S2 : Validation per Action method - ideas?

2007-10-17 Thread beto
You should have a look at this one: http://www.nabble.com/Re%3A-S2-%3A-Validation-per-Action-method---ideas--p12753992.html I ended up following this lead, and it works nice. Or you could try this: http://www.nabble.com/Re%3A-S2-%3A-Validation-per-Action-method---ideas--p12090749.html beto

RE: S2 : Validation per Action method - ideas?

2007-10-17 Thread Dean Pullen
user@struts.apache.org Subject: RE: S2 : Validation per Action method - ideas? I got a problem like this I have 2 mothods caled edit() and create() I used annotation based validation but tthing is i want to validate some of experssions in edit method and some of the in create() method cant use @skipValidati

RE: S2 : Validation per Action method - ideas?

2007-10-17 Thread shan99
I got a problem like this I have 2 mothods caled edit() and create() I used annotation based validation but tthing is i want to validate some of experssions in edit method and some of the in create() method cant use @skipValidation in this my problem is i can not difine this seperatly in my acti

Re: S2 : Validation per Action method - ideas?

2007-09-18 Thread Ted Husted
With some work, the annotations could be as flexible as the XML validations. The messy problem in either case is being able to express when and when-not to inherit validations from parent classes. Right now, you can shut off the inheritance of validations (as Veronica described), but it shuts off

RE: S2 : Validation per Action method - ideas?

2007-09-18 Thread David Harland
that maybe used by more than one action. -Original Message- From: cilquirm [mailto:[EMAIL PROTECTED] Sent: 18 September 2007 15:41 To: user@struts.apache.org Subject: RE: S2 : Validation per Action method - ideas? I'm not sure I follow how validation is more flexible when

RE: S2 : Validation per Action method - ideas?

2007-09-18 Thread cilquirm
ent validation. This can get messy. > > > Regards > > David > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > Ted Husted > Sent: 18 September 2007 11:12 > To: Struts Users Mailing List > Subject: Re: S2 : Validatio

RE: S2 : Validation per Action method - ideas?

2007-09-18 Thread David Harland
wanting different validation. This can get messy. Regards David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ted Husted Sent: 18 September 2007 11:12 To: Struts Users Mailing List Subject: Re: S2 : Validation per Action method - ideas? * http

Re: S2 : Validation per Action method - ideas?

2007-09-18 Thread Ted Husted
ocumentation that shows you how to > configure validation per action method using the validation xml files? > Or is this not possible? > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > Ted Husted > Sent: 18 September 2007 10:27 > T

RE: S2 : Validation per Action method - ideas?

2007-09-18 Thread David Harland
To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Re: S2 : Validation per Action method - ideas? I opened * https://issues.apache.org/struts/browse/WW-2191 for this, and noted the setting in the Validators documentation. Thanks for pointing this out, Veronica! -Ted. On 8/10/07

Re: S2 : Validation per Action method - ideas?

2007-09-18 Thread Ted Husted
I opened * https://issues.apache.org/struts/browse/WW-2191 for this, and noted the setting in the Validators documentation. Thanks for pointing this out, Veronica! -Ted. On 8/10/07, Veronica Iturrioz <[EMAIL PROTECTED]> wrote: > You must to set the property validateAnnotatedMethodOnly=true, a

Re: [S2] validation issue

2007-09-12 Thread Pablo Vázquez Blázquez
Hope it helps. field1 == null || field2 != null field 2 is required when field 1 is not null -Original Message- From: j alex [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 11, 2007 4:28 PM To: Struts Users Mailing List Subject: Re: [S2] validation issue

RE: [S2] validation issue

2007-09-12 Thread Jiang, Jane (NIH/NCI) [C]
null field 2 is required when field 1 is not null -Original Message- From: j alex [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 11, 2007 4:28 PM To: Struts Users Mailing List Subject: Re: [S2] validation issue The fieldexpression validator would handle most dependent c

Re: [S2] validation issue

2007-09-11 Thread j alex
The fieldexpression validator would handle most dependent checks, but i think there's no out-of-the-box solution if we want the expression to act as a guard condition alone and not as a validation. Please check the archives for comments on this. -Joseph On 9/11/07, Jiang, Jane (NIH/NCI) [C] <[E

RE: [S2] validation issue

2007-09-11 Thread Jiang, Jane (NIH/NCI) [C]
Did you look into expression validator? -Original Message- From: Pablo Vázquez Blázquez [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 11, 2007 10:28 AM To: Struts Users Mailing List Subject: [S2] validation issue Hi all! I´m trying to validate two fields that depends on another f

Re: [S2] validation issue

2007-09-11 Thread Pablo Vázquez Blázquez
In Struts2 there are no forms... Yes, no forms. I think there is an interceptor interface called ValidationAware and there it can be the cue, but I´m not sure and I suppose there should be another easier way of doing what I want... Jorge Martín Cuervo escribió: sorry, i have no experience wit

Re: [S2] validation issue

2007-09-11 Thread Jorge Martín Cuervo
sorry, i have no experience with struts2. I only use classic struts: http://struts.apache.org/1.3.8/faqs/validator.html Maybe you can create your own validwhen validator rule in struts2. I integrated commons validator in my own project and i reused some struts validwhen code. Validwhen uses an

Re: [S2] validation issue

2007-09-11 Thread Pablo Vázquez Blázquez
Hola Jorge, I think there is not a "validwhen" validator, either... Any idea? Thanks. Jorge Martín Cuervo escribió: try validwhen validation rule. It exists in struts, maybe exists too in struts2. El mar, 11-09-2007 a las 16:27 +0200, Pablo Vázquez Blázquez escribió: Hi all! I´m trying t

Re: [S2] validation issue

2007-09-11 Thread Jorge Martín Cuervo
try validwhen validation rule. It exists in struts, maybe exists too in struts2. El mar, 11-09-2007 a las 16:27 +0200, Pablo Vázquez Blázquez escribió: > Hi all! > > I´m trying to validate two fields that depends on another field. > > What I was doing in S1 is (for field "in"): > > > key="

Re: S2 Validation XML -- multiple methods on same Action

2007-08-22 Thread Jeromy Evans
Use wildcards for your actions. The action's alias now includes the method name. Refer to the action by it's alias matching the wildcard: Use the validation filenames ActionClassName-alias-validation.xml: MyAction-abc_methodA-validation.xml MyAction-abc_methodB-validation.xml Refe

Re: S2 Validation XML -- multiple methods on same Action

2007-08-22 Thread j alex
Resend On 8/20/07, j alex <[EMAIL PROTECTED]> wrote: > > Hi, > > Just checking one more time if someone has an answer to my below email. We > decided to go with XML validation, and as i understand it, we cannot have > validation files based on action methods, but can only name it by action > alias

Re: S2 Validation XML -- multiple methods on same Action

2007-08-21 Thread j alex
Resending... On 8/20/07, j alex <[EMAIL PROTECTED]> wrote: > > Hi, > > Just checking one more time if someone has an answer to my below email. We > decided to go with XML validation, and as i understand it, we cannot have > validation files based on action methods, but can only name it by action >

Re: [S2] Validation depending on which submit button was pressed

2007-08-17 Thread Sandro Giessl
Hi! method="..." is exactly what I have been looking for. Sorry for disturbing the list, I didn't expect it to be that easy. :) Thanks! Sandro On Friday 17 August 2007 14:22:57 j alex wrote: > Assuming that Add, Back , Fwd are different methods in the same > Action, you could use s:submit meth

Re: [S2] Validation depending on which submit button was pressed

2007-08-17 Thread Sandro Giessl
Hi! method="..." is exactly what I have been looking for. Sorry for disturbing the list, I didn't expect it to be that easy. :) Thanks! Sandro On Friday 17 August 2007 14:22:57 j alex wrote: > Assuming that Add, Back , Fwd are different methods in the same > Action, you could use s:submit meth

Re: [S2] Validation depending on which submit button was pressed

2007-08-17 Thread j alex
Assuming that Add, Back , Fwd are different methods in the same Action, you could use s:submit method="Add" to post to Add method, and define the validations for that method using annotation . I havent tried if the non-field level validators get executed at this point On 8/17/07, Sandro Giessl <

Re: S2 : Validation per Action method - ideas?

2007-08-10 Thread Veronica Iturrioz
. - Original Message From: beto <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Friday, August 10, 2007 8:54:02 AM Subject: RE: S2 : Validation per Action method - ideas? I tried removing annotations from the execute method, and the field "confirm" is still getting val

RE: S2 : Validation per Action method - ideas?

2007-08-10 Thread beto
st, let the validations annotation on only one method and check > what happens. > > -Message d'origine- > De : beto [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 10 août 2007 13:21 > À : user@struts.apache.org > Objet : RE: S2 : Validation per Action method - id

RE: S2 : Validation per Action method - ideas?

2007-08-10 Thread Arnaud Cogoluegnes
happens. -Message d'origine- De : beto [mailto:[EMAIL PROTECTED] Envoyé : vendredi 10 août 2007 13:21 À : user@struts.apache.org Objet : RE: S2 : Validation per Action method - ideas? Yes, I removed the annotations from the setters. I might be overlooking something, but I'm not

RE: S2 : Validation per Action method - ideas?

2007-08-10 Thread beto
validation annotations on > the > field setters? > > -Message d'origine- > De : beto [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 10 août 2007 11:56 > À : user@struts.apache.org > Objet : RE: S2 : Validation per Action method - ideas? > > > Hi again, and

RE: S2 : Validation per Action method - ideas?

2007-08-10 Thread Arnaud Cogoluegnes
Pretty strange indeed. Did you remove all the validation annotations on the field setters? -Message d'origine- De : beto [mailto:[EMAIL PROTECTED] Envoyé : vendredi 10 août 2007 11:56 À : user@struts.apache.org Objet : RE: S2 : Validation per Action method - ideas? Hi again, and

RE: S2 : Validation per Action method - ideas?

2007-08-10 Thread beto
tty confusing but the functionality quite neat. > > http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/va > lidator/annotations/Validations.html > > -Message d'origine- > De : beto [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 10 août 2007 1

RE: S2 : Validation per Action method - ideas?

2007-08-10 Thread Arnaud Cogoluegnes
origine- De : beto [mailto:[EMAIL PROTECTED] Envoyé : vendredi 10 août 2007 10:57 À : user@struts.apache.org Objet : RE: S2 : Validation per Action method - ideas? Hi. I've tried using validation annotation (which works great) and ran into the scenario mentioned by Joseph. I have different

RE: S2 : Validation per Action method - ideas?

2007-08-10 Thread beto
Hi. I've tried using validation annotation (which works great) and ran into the scenario mentioned by Joseph. I have different action methods which requires different set of validation rules. I can not find out how to set up validation annotation to differentiate the validation rules based on whi

Re: S2 : Validation per Action method - ideas?

2007-08-09 Thread Zarar Siddiqi
Specify your validation rules in a file called MyActionClass-myAction-validation.xml where MyActionClass is the action class and myAction is the name of the action being executed. So your struts.xml would look something like: ... With this setup the validation in MyActionClass-myAction-validation

RE: S2 : Validation per Action method - ideas?

2007-08-09 Thread Arnaud Cogoluegnes
You should check the Javadoc of the com.opensymphony.xwork2.validator.annotations.Validation annotation. Syntax example: @Validations( requiredFields = [EMAIL PROTECTED](type = ValidatorType.SIMPLE, fieldName = "customfield", message = "You must enter a value for

Re: [S2] validation continue even if there is an error

2007-08-08 Thread nodep
Hi, my validation file is: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>

Re: [S2] validation continue even if there is an error

2007-08-07 Thread Oleg Mikheev
nodep wrote: and it's wrong because there's a tag "field-validator" not closed. Struts2 doesn't stop the flow and go to my action: for me it's not logic, it should stop with some error and return to the prev page ... What do you think? We think that XML validity check is a task of DTD attac

Re: [S2] Validation error messages pile up

2007-07-25 Thread Grish
I have the same problem. Error messages on one form are piling up. Were you able to resolve this probelm? It only occurs in Firefox as well. I notice it occurs when you have multiple forms. Rafael Dittberner wrote: > > The first one. > > Rafael Dittberner > > > Musachy Barroso escreveu: >>

RE: [S2] Validation alias

2007-07-03 Thread Crocker, Patrick
al Message- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: Monday, July 02, 2007 6:04 PM To: Struts Users Mailing List Subject: Re: [S2] Validation alias Crocker, Patrick wrote: > Unfortunately, I can't get that > (MySpringAction-crudsave-validation.xml) > to work. The vali

Re: [S2] Validation alias

2007-07-02 Thread Jeromy Evans
Crocker, Patrick wrote: Unfortunately, I can't get that (MySpringAction-crudsave-validation.xml) to work. The validation never fires. Am I missing something, or just barking up the wrong tree all-together? The last time I checked you had to use the wildcard approach to call methods in your

Re: [S2] Validation, actionerrors, actionmessages and redirect

2007-06-19 Thread Guillaume Carré
2007/6/19, Jeff Amiel <[EMAIL PROTECTED]>: Ya know...I cannot believe that people categorize the datepicker 'issue' as a 'big issue'. when I loose several hours trying to make a, as you say, "small 'nice to have' component", work, in a GA struts version, I call it a "big" issue (and it's not ad

Re: [S2] Validation, actionerrors, actionmessages and redirect

2007-06-19 Thread Jeff Amiel
On 6/19/07, Guillaume Carré <[EMAIL PROTECTED]> wrote: IMHO (with the broken datepicker tag that is being reworked for 2.1) this is THE big "issue" with Struts 2.0.x. At least this is mine. Ya know...I cannot believe that people categorize the datepicker 'issue' as a 'big issue'. I mean...it'

RE: [S2] Validation

2007-06-14 Thread Hoying, Ken
June 14, 2007 3:32 PM To: Struts Users Mailing List Subject: Re: [S2] Validation One way to know if the validation is detected by struts is using the config browser plugin (http://struts.apache.org/2.x/docs/config-browser-plugin.html), is the "validation" interceptor being applied to y

Re: [S2] Validation error messages pile up

2007-06-14 Thread Rafael Dittberner
Yes, both forms have validate="true". required="true" > This is the one that works, it is only a test I did while learning S2, so it is much simplier than the other. Rafael Dittberner Musachy Barroso escreveu: If you have validate="true" on the form, javascript validation will be perfor

Re: [S2] Validation error messages pile up

2007-06-14 Thread Rafael Dittberner
The first one. Rafael Dittberner Musachy Barroso escreveu: On which field are they piling up? musachy On 6/14/07, Rafael Dittberner <[EMAIL PROTECTED]> wrote: In one of my forms the validation error messages are piling up every time the submit button is pressed. This only occurs in Firefox

Re: [S2] Validation error messages pile up

2007-06-14 Thread Musachy Barroso
If you have validate="true" on the form, javascript validation will be performed before submitting the form, do you have that in both forms? musachy On 6/14/07, Rafael Dittberner <[EMAIL PROTECTED]> wrote: If I uncheck the Tools|Options|Content|Enable Javascript option in FF it works ok. But i

Re: [S2] Validation

2007-06-14 Thread Musachy Barroso
One way to know if the validation is detected by struts is using the config browser plugin (http://struts.apache.org/2.x/docs/config-browser-plugin.html), is the "validation" interceptor being applied to your action? In any case, posting the action mapping and the class would help. musachy On 6/

Re: [S2] Validation error messages pile up

2007-06-14 Thread Rafael Dittberner
If I uncheck the Tools|Options|Content|Enable Javascript option in FF it works ok. But it does not answer the question why one form works and the other don't. Rafael Dittberner Rafael Dittberner escreveu: In one of my forms the validation error messages are piling up every time the submit bu

Re: [S2] Validation error messages pile up

2007-06-14 Thread Musachy Barroso
On which field are they piling up? musachy On 6/14/07, Rafael Dittberner <[EMAIL PROTECTED]> wrote: In one of my forms the validation error messages are piling up every time the submit button is pressed. This only occurs in Firefox and only with this form. I have other form working well both i

Re: [s2] Validation does not work in Struts 2 basic project

2007-05-29 Thread Skip Hollowell
It looks to me like a typo in your xml or the naming of your xml file: Pasted as *Java* by *Logon-validaiton.xml *should be logon-validation.xml robinbajaj wrote: Here's my Logon-Validation.xml http://rafb.net/p/FToVf186.html --

Re: [s2] Validation does not work in Struts 2 basic project

2007-05-29 Thread Olivier THIERRY
Well, I still couldn't succeed in implementing validation with Struts 2, so I can't help you :( 2007/5/29, Vijay Prajapati <[EMAIL PROTECTED]>: Hi Olivier, I am using Struts2.0.6 and trying to implement Validator framework but couldn't succeed. I have confution to give name of actionname-

Re: [s2] Validation does not work in Struts 2 basic project

2007-05-29 Thread Vijay Prajapati
Hi Olivier, I am using Struts2.0.6 and trying to implement Validator framework but couldn't succeed. I have confution to give name of actionname-validator.xmlfile. I am here giving action cofiguration in Struts.xml /adduser.jsp /adduser.jsp I have implemented UserManagementAction.java with

Re: [s2] Validation does not work in Struts 2 basic project

2007-05-29 Thread Olivier THIERRY
I think you have to add validation interceptor to your action. Try something like that : Menu /jsp/Logon.jsp Hope it helps ;) 2007/5/29, robinbajaj <[EMAIL PROTECTED]>: I am a Struts 2 newbie. The validation p

Re: [S2] Validation on datetimepicker

2007-05-21 Thread Musachy Barroso
You can use the notify topics to validate the date and cancel the request if the date is not valid. On 2.0.6 I don't think there is any way to get Struts do it for you. On 2.1 you can mix ajax with validation so any validation supported by struts can be used with the ajax tags. musachy On 5/21/0

Re: [S2] Validation setup

2007-04-09 Thread Dave Newton
--- Skip Hollowell <[EMAIL PROTECTED]> wrote: > minLength and maxLength (case is important and I am > an idiot) ;) I'd bet we'd turn the game over if we all kept score on stuff like that! d. Never miss an em

Re: [S2] Validation setup

2007-04-09 Thread Skip Hollowell
minLength and maxLength (case is important and I am an idiot) Done and done. Thanks Dave for helping where you could. Much appreciated. Skip. Skip Hollowell wrote: Now, if I could only figure out why I am getting errors on the minlength and maxlength of my stringlength validator:

Re: [S2] Validation setup

2007-04-09 Thread Dave Newton
--- Skip Hollowell <[EMAIL PROTECTED]> wrote: > Now, if I could only figure out why I am getting > errors on the minlength and maxlength of my > stringlength validator: > 4 > 4 Try minLength/maxLength. > WARNING: Caught OgnlException while setting property > 'minlength' on ty

Re: [S2] Validation setup

2007-04-09 Thread Skip Hollowell
The file name for the validation file is: {ActionName}-{AliasName}-validation.xml In my case: AccountAction-Payment_retrieveFee-validation.xml Now, if I could only figure out why I am getting errors on the minlength and maxlength of my stringlength validator:

Re: [S2] Validation setup

2007-04-05 Thread Skip Hollowell
OK, I think I may be on to something here... In this particular Action, I am working with a Payment class, instead of individual fields. that may very well be where all of my trouble is. align="center"/> So say I want to validate the ccNumber and ccExpDate. These are part of my Pa

  1   2   >