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

S2 Validation XML + Bootstrap

2013-05-22 Thread Frans Thamura
Hi All anyone have idea how to implement validation xml inside s2 (serverside), and link with bootstrap theme UI. the idea is to make 1 parameter, validation.xml is ok, and we can manage both validation in serverside and client side.. NB: We use S2Bootstrap plugins ---

[S2] validation short-circuit

2010-08-11 Thread mailtolouis2020-struts
Hi, In the validation, short-circuit is for when the validation failed, the following not get rules not get evaluate. Is there anything similar like this, but when one field validation pass, the rest no need to get evaluate? Regards LV

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

S2 validation without API ties

2010-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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-based interface so I'd like to re-use as much code as possible without tying myself to the S2 API. The issue is with fi

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

[S2] Validation - globally define regex

2010-01-21 Thread mailtolouis2020-struts
Hello, In struts 1, I can define the regex in one file like this alphaNumeric [A-Za-z0-9]* and use like this in mask ${alphaNumeric} Could anyone tell me how to achieve this in Struts 2 ? I've this in validation rule and I want to put the regex in another variable, I tried used tag, but

s2: validation of checkbox a radio button

2009-11-18 Thread Ignacio de Córdoba
Hello, I am trying to use client side validations through ...-validation.xml in struts2 I have it working but only for text and file input fields. I need to validate if a checkbox is checked. using "required" or "requiredstring" validators always validates as the field as a value even if you don'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

S2: Validation not happening

2009-09-29 Thread maestro
I have searched and compared to no avail. This one has been stumping me for some time now. I'm trying to use the validation.xml. I have it working on one page and not on the other. Perhaps you can spot the error? struts.xml /WEB-INF/customer/update.jsp cust

[S2] Validation and web service

2009-09-16 Thread mailtolouis2020-struts
Hi, I'm using Struts 2 + Spring + Apache CXF, I've all my validation rule in struts 2 xml files, is it possible to use these validation in the web services? and how? Thanks LV

[S2] Validation message truncated

2009-02-23 Thread Kevin Wade
I've just upgraded to 2.0.14 (from 2.0.11) in the hopes that it would solve a problem where validation messages are being truncated. I have a -validation.xml with 26 fields, each field having at least one field-validator. The validation works fine on all fields except there is always one

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/ --

[S2]Validation with xml file not working

2008-08-14 Thread Ylva Degerfeldt
Hi everyone, I'm trying to use the Validation framework by creating a file called NameAndCvAction-validations.xml, for my action "NameAndCvAction", but it's not working the way it should. I've stepped through the code and it seems that the validations that should have been made through the xml fil

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

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

2008-06-18 Thread xianwinwin
I was wondering how to force the user to input a Date field? consider the a class of Employee (dob, name). and I wish to insert new data. I managed to force the date by the code below, but couldn't do that for the date. example Class Test { private Employee empl; @Validations(

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,

[s2] Validation, but not the first time

2008-02-22 Thread Allen, Daniel
I've set up a login page for my site, and I've used the ValidationAware interface on LoginAction in order to display errors on the login form when the user name or password is incorrect. However, this has one unintended result: the first time the user navigates to "server.com/webapp/login.action",

Re: [S2] Validation

2008-02-18 Thread carmi_cd
setters for > "lastName" and so on, or are you assuming there's a getEdituser() and all > the > values are being set on the edituser bean? > > Dave > > > > --------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional

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. >

[S2] Validation

2008-02-17 Thread carmi_cd
duleBean(); setModules(moduleBean.getAllModule()); } please help me. Thanks in advance for your help. -- View this message in context: http://www.nabble.com/-S2--Validation-tp15539111p15539111.html Sent from the Struts - User mailing list archive at Na

[S2] validation on list of bean (was Validation question)

2008-01-08 Thread Martin Braure de Calignon
Le mardi 08 janvier 2008 à 14:08 +0100, Martin Braure de Calignon a écrit : Sorry I've forgot [S2] in subject > Hello, > > I'm currently using struts2 for a project. > I want to validate all elements of a list (each elements should have a > non-empty value, or the list should be empty). > > wha

[s2] validation on method level in model driven / visitor field validator

2007-10-31 Thread lbastil
xml approach on method level (--validation,xml), but because on Action Level the configuration for both methods is the same (the visitor field validator) it seems to be no help ... thank you very much in advance, basti -- View this message in context: http://www.nabble.com/-s2--validation-on

Re: [S2] validation annotation problem

2007-10-29 Thread lbastil
hod method : methods) { > if(method.getName().equals("setSubModel")){ > System.out.println("method: " + method.getName()); > Annotation[]annotations = method.getAnnotations(); > System.out.println("annotation size: &

[S2] validation annotation problem

2007-10-24 Thread lbastil
thank you in davance -- View this message in context: http://www.nabble.com/-S2--validation-annotation-problem-tf4684043.html#a13384745 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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
I) [C] <[EMAIL PROTECTED]> wrote: > > 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

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

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="

[S2] validation issue

2007-09-11 Thread Pablo Vázquez Blázquez
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="ErrorMessages.applicationIdRepresent.sameReference"/> field[0] editParams fieldTest[0] NOTNULL But now in S2, there is no "r

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 >

S2 Validation XML -- multiple methods on same Action

2007-08-20 Thread j alex
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. This makes me create a new action alias entry in struts.xml for e

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 <

[S2] Validation depending on which submit button was pressed

2007-08-17 Thread Sandro Giessl
Hi, I have one form which submits data to one action. However there are different s:submit-buttons in the form (Add Row, Back, Forward). Full validation should only happen if "Forward" has been clicked. The other buttons should only validate some non-required field formats (Int-Validator, ...).

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
lue for > string.")} > > ) > public String execute() throws Exception { > return SUCCESS; > } > > -Message d'origine- > De : j alex [mailto:[EMAIL PROTECTED] > Envoyé : jeudi 9 août 2007 15:38 > À : Struts Users Mail

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
return SUCCESS; } -Message d'origine- De : j alex [mailto:[EMAIL PROTECTED] Envoyé : jeudi 9 août 2007 15:38 À : Struts Users Mailing List Objet : S2 : Validation per Action method - ideas? Hi, Is there a way to declaratively restrict validations depending on the method

S2 : Validation per Action method - ideas?

2007-08-09 Thread j alex
Hi, Is there a way to declaratively restrict validations depending on the method within the Action? - this could be useful for wizard-like forms where each step of the wizard has a set of fields ; corresponds to a different method but all of them share the same Action. I can think of having an ex

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

2007-08-08 Thread nodep
a task of DTD attached. > Please put DTD (or Schema) to the XMLs and it will cure > your issues. > (In 2.0.9 DTDs became required for validator XMLs I think) > > Oleg > > - > To unsubscribe, e-mail: [EMAIL PR

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

[S2] validation continue even if there is an error

2007-08-07 Thread nodep
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? Stefano :) -- View this message in context: http://www.nabble.com/-S2--validation-continue-even-if-there-is-an-error-tf4230757.html#a12

[S2] Validation Input page handling the display of lists

2007-07-26 Thread Adam Ruggles
I have a form that uses the validation framework so when the user submits a page I have a /myform.jsp statement that re-renders the input form and displays the fields that failed validation. The problem I'm running into is that I have a option transfer select field and once the form is re-rend

Re: [S2] Validation error messages pile up

2007-07-25 Thread Grish
no máximo 70 >>> caracteres. >>> >>> >>> >>> >>> 50 >>> O campo cidade deve ter no máximo 50 >>> caracteres. >>> >

  1   2   >