Re: Grouping same type validators

2014-05-11 Thread Mats Nyberg
dir and presto. just my 2c mats > Från: Lukasz Lenart > Ämne: Re: Grouping same type validators > Datum: 5 maj 2014 10:17:09 CEST > Till: Struts Users Mailing List > > > It isn't supported and I don't see simple way to achieve this. > > 2014-05-03 23:33

Re: Grouping same type validators

2014-05-11 Thread Mats Nyberg
-plugin. generate the files into the generated classes dir and presto. just my 2c mats >> Från: Lukasz Lenart >> Ämne: Re: Grouping same type validators >> Datum: 5 maj 2014 10:17:09 CEST >> Till: Struts Users Mailing List >> >> >> It isn't suppo

Re: Grouping same type validators

2014-05-05 Thread Antonio Sánchez
Sorry, this is the right one: https://issues.apache.org/jira/browse/WW-4340 El lun 05 may 2014 18:39:59 CEST, Antonio Sánchez escribió: https://issues.apache.org/jira/browse/WW-3993 El lun 05 may 2014 13:34:51 CEST, Lukasz Lenart escribió: Sure thing, but it will be rather postponed till 2.5

Re: Grouping same type validators

2014-05-05 Thread Antonio Sánchez
https://issues.apache.org/jira/browse/WW-3993 El lun 05 may 2014 13:34:51 CEST, Lukasz Lenart escribió: Sure thing, but it will be rather postponed till 2.5 2014-05-05 13:31 GMT+02:00 Antonio Sánchez : Would it worth the while to post an enhancement request? El lun 05 may 2014 10:17:09 CEST,

Re: Grouping same type validators

2014-05-05 Thread Lukasz Lenart
Sure thing, but it will be rather postponed till 2.5 2014-05-05 13:31 GMT+02:00 Antonio Sánchez : > Would it worth the while to post an enhancement request? > > El lun 05 may 2014 10:17:09 CEST, Lukasz Lenart escribió: >> >> It isn't supported and I don't see simple way to achieve this. >> >> 2014

Re: Grouping same type validators

2014-05-05 Thread Antonio Sánchez
Would it worth the while to post an enhancement request? El lun 05 may 2014 10:17:09 CEST, Lukasz Lenart escribió: It isn't supported and I don't see simple way to achieve this. 2014-05-03 23:33 GMT+02:00 Antonio Sánchez : Hello. in a middle sized application there may be hundreds of required

Re: Grouping same type validators

2014-05-05 Thread Lukasz Lenart
It isn't supported and I don't see simple way to achieve this. 2014-05-03 23:33 GMT+02:00 Antonio Sánchez : > Hello. > > in a middle sized application there may be hundreds of required fields, and > maybe dozens of some other validator type, which are all very verbose to > define. > > For instance

Re: Grouping same type validators

2014-05-05 Thread Antonio Sánchez
I don't think so. That code validates a filed named person.lastNameAndFirstName for a sequence of blank separated words. I'm asking for for an abbreviated syntax for defining required validations, or once for all defining validations that will be present all along the project. MG> person.

RE: Grouping same type validators

2014-05-03 Thread Martin Gainty
> Date: Sat, 3 May 2014 23:33:09 +0200 > From: ads...@gmail.com > To: user@struts.apache.org > Subject: Grouping same type validators > > Hello. > > in a middle sized application there may be hundreds of required fields, > and maybe dozens of some other validat

Grouping same type validators

2014-05-03 Thread Antonio Sánchez
Hello. in a middle sized application there may be hundreds of required fields, and maybe dozens of some other validator type, which are all very verbose to define. For instance: guess a big form with many required fields: person.firstName First name is required.

Re: validators strange behavior

2013-09-20 Thread Yaragalla Muralidhar
This problem is also solved. Thanks. *Thanks and Regards,* Muralidhar Yaragalla. * * On Fri, Sep 20, 2013 at 1:45 AM, Yaragalla Muralidhar < yaragallamur...@gmail.com> wrote: > I have written validators for 3 fields but only validation is happening > for one field. Out of

validators strange behavior

2013-09-19 Thread Yaragalla Muralidhar
I have written validators for 3 fields but only validation is happening for one field. Out of 3 fields the validation is happening only for "primDet.admissionDate" field. even though the the text fields are empty for the other 2, the validation is not happening. The following

Validators issue

2011-08-08 Thread Mano Pájaro
Hello list! I'm trying to use AJAX validators in my form, I have a component in my JSP like: where %{zones} is a list of objects Sge2Param, which detail attibute returns the name of each object. When I'm using Validators in all textfield fields, when it does the validation return a

Re: Struts 2 Conditional Validators?

2010-12-16 Thread RogerV
Dave Newton-6 wrote: > > Validators aren't called when *you* call a method, its not like they > cause byte-code to be inserted. > > Dave > Ok - bad choice of words. Validation annotations are processed by the AnnotationValidationInterceptor. How it decides what to pr

Re: Struts 2 Conditional Validators?

2010-12-16 Thread Dave Newton
Validators aren't called when *you* call a method, its not like they cause byte-code to be inserted. Dave On Thursday, December 16, 2010, RogerV wrote: > > Hi > > Is it possible to "conditionally" trigger a validator such that if > conditionA then use ValidatorX

Struts 2 Conditional Validators?

2010-12-16 Thread RogerV
ure form and hence a single attribute in my action. And of course, they need validating differently. The obvious solution to create two seperate input fields on the .jsp form has been vetoed by the client. I have tried calling two seperate methods and attaching the validators to the individ

RE: How to reuse field validators?

2010-04-16 Thread Griffith, Michael *
Re: How to reuse field validators? W dniu 16 kwietnia 2010 16:27 użytkownik Griffith, Michael * napisał: > Currently the xml file is in the package with the struts action.  I this this > is where my problem lies, should it be in the model package? Yes, and you must expose you model di

Re: How to reuse field validators?

2010-04-16 Thread Lukasz Lenart
W dniu 16 kwietnia 2010 16:27 użytkownik Griffith, Michael * napisał: > Currently the xml file is in the package with the struts action.  I this this > is where my problem lies, should it be in the model package? Yes, and you must expose you model directly. Regards -- Łukasz http://www.lenart

RE: How to reuse field validators?

2010-04-16 Thread Griffith, Michael *
* Subject: Re: How to reuse field validators? W dniu 16 kwietnia 2010 14:51 użytkownik Griffith, Michael * napisał: > I want to reuse the field validations in -validator.xml in two > different Action classes in two different packages and different namespaces. > Is there a way to do tha

RE: How to reuse field validators?

2010-04-16 Thread Griffith, Michael *
thout copying the XML file? MG -Original Message- From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Friday, April 16, 2010 12:13 AM To: Struts Users Mailing List Subject: Re: How to reuse field validators? 2010/4/16 Griffith, Michael * : > Hello all, > > I am not c

Re: How to reuse field validators?

2010-04-15 Thread Lukasz Lenart
2010/4/16 Griffith, Michael * : > Hello all, > > I am not clear on how to reuse a field validator that doesn't share a > common package or action/alias.  I have package > > ...struts.admin/ > ...struts/application/ > > with namespaces /admin and /application respectively.  I have a model > object w

How to reuse field validators?

2010-04-15 Thread Griffith, Michael *
Hello all, I am not clear on how to reuse a field validator that doesn't share a common package or action/alias. I have package ...struts.admin/ ...struts/application/ with namespaces /admin and /application respectively. I have a model object with a validator -validator.xml in the /applic

Re: help: struts2 validators doesn't work in java 1.6

2009-07-22 Thread Wes Wannemacher
Validation works fine for me... From looking at the exception, I would guess that your validation file has unparseable XML. Can you post some more information? We'll help you sort it out. -Wes On Wed, Jul 22, 2009 at 1:55 AM, gwen harold autencio wrote: > Hi > > > > Any workaround on validation o

help: struts2 validators doesn't work in java 1.6

2009-07-21 Thread gwen harold autencio
Hi Any workaround on validation of struts2 to work using java1.6 ? Seems to work using java 1.5.. version : struts2-core-2.0.11.2 Getting Error 500 in page java.lang.ExceptionInInitializerError     at com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs(ValidatorF

Adding validators dynamically

2009-06-10 Thread j alex
ways be present and there are some validation rules associated with it. I need to replicate the same for every field that's added dynamically. I was thinking of defining the rules for this in validation XML , cloning these rules for as many fields are present in the submitted form, adding the

Re: Validators

2009-04-08 Thread Martin Gainty
Roberto- in %TOMCAT_HOME%\webapps\struts2-showcase-2.1.6\WEB-INF\classes\com\opensymphony\xwork2\validator\validators\default.xml you should have at minimum these 2 Validation Classes declared: //an example of Action Class with an ID attribute package

S2 Grouping Validators

2009-01-09 Thread Andreas Sachs
Hello, can anybody give me some hints on the configuration of validators to avoid redundant configuration. Lets say, you have 3 actions, all off them have a username field. To validate the username three build-in validators are used (with annotation or via xml). If the validation rule changes

Re: Custom Validators?

2008-11-18 Thread David C. Hicks
I'm mainly looking for information on S2 validators. I think I've figured out what I needed, though. Thanks. Dave Newton wrote: --- On Tue, 11/18/08, David C. Hicks wrote: Is there a decent guide somewhere on the Internet about writing customer validators? For which

Re: Custom Validators?

2008-11-18 Thread Dave Newton
--- On Tue, 11/18/08, Musachy Barroso wrote: > > Dave "Meta-Google" Newton > When did I get fired? You know, economic downturn and all. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Re: Custom Validators?

2008-11-18 Thread Musachy Barroso
> > Dave "Meta-Google" Newton > > When did I get fired? musachy -- "Hey you! Would you help me to carry the stone?" Pink Floyd

Re: Custom Validators?

2008-11-18 Thread Dave Newton
--- On Tue, 11/18/08, David C. Hicks wrote: > Is there a decent guide somewhere on the Internet about > writing customer validators? For which version of Struts? I was able to find several references by searching the fine web with "struts +custom validator". For S2 the

Custom Validators?

2008-11-18 Thread David C. Hicks
Is there a decent guide somewhere on the Internet about writing customer validators? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Upgrading to struts 2.0.11.2 breaks all xml validators

2008-07-03 Thread Struts Two
8 3:52:31 PM Subject: Re: Upgrading to struts 2.0.11..2 breaks all xml validators Looks like another case of the classloader returning weird URIs: "Caused by: java.lang.IllegalArgumentException: URI scheme is not "file"       at java.io.File.(Fil

Re: Upgrading to struts 2.0.11.2 breaks all xml validators

2008-07-03 Thread Musachy Barroso
m: Musachy Barroso <[EMAIL PROTECTED]> >> To: Struts Users Mailing List >> Sent: Thursday, July 3, 2008 3:23:25 PM >> Subject: Re: Upgrading to struts 2.0.11.2 breaks all xml validators >> >> Can you post the full stacktrace, or attach it to a Jira ticket? >> &g

Re: Upgrading to struts 2.0.11.2 breaks all xml validators

2008-07-03 Thread Musachy Barroso
opened a JIRA ticket for this issue. > > - Original Message > From: Musachy Barroso <[EMAIL PROTECTED]> > To: Struts Users Mailing List > Sent: Thursday, July 3, 2008 3:23:25 PM > Subject: Re: Upgrading to struts 2.0.11.2 breaks all xml validators > > Can

Re: Upgrading to struts 2.0.11.2 breaks all xml validators

2008-07-03 Thread Struts Two
I have opened a JIRA ticket for this issue. - Original Message From: Musachy Barroso <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Thursday, July 3, 2008 3:23:25 PM Subject: Re: Upgrading to struts 2.0.11.2 breaks all xml validators Can you post the full stacktrace, or

Re: Upgrading to struts 2.0.11.2 breaks all xml validators

2008-07-03 Thread Musachy Barroso
Can you post the full stacktrace, or attach it to a Jira ticket? musachy On Thu, Jul 3, 2008 at 2:50 PM, Struts Two <[EMAIL PROTECTED]> wrote: > Hello All: > I have upgraded my struts 2.0.11.1 to struts 2.0.11.2. None of my xml > validators run and they all break. I have downgra

Upgrading to struts 2.0.11.2 breaks all xml validators

2008-07-03 Thread Struts Two
Hello All: I have upgraded my struts 2.0.11.1 to struts 2.0.11.2. None of my xml validators run and they all break. I have downgraded to 2.0.11.1 and they all work again. I think there must be a bug with xwork-2.0.5.jar. The first few lines of stack trace are as follows: at

Would it be possible to add ognl evaluation of param values in field validators.

2007-08-09 Thread David Harland
Would it be possible to add ognl evaluation of param values in field validators. Thanks Dave. __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP

Can you add ognl evaluation of param values in field validators

2007-08-09 Thread David Harland
Would it be possible to add ognl evaluation of param values in field validators. Thanks Dave. __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP

Re: Struts 2 Validation multiple validators on same field

2007-08-07 Thread Toni Lyytikäinen
dator, possibly regex or fieldexpression validator. Also the validators for the field should be inside the same < field > -tag so they can be short-circuited. Try something like this (almost straight copy/paste from the struts wiki pages): You must enter a value for ac

Struts 2 Validation multiple validators on same field

2007-08-07 Thread orshoe
splayed based on the input. note: Please ignore the extra spaces in the param tags, I had intentionally added the space to make sure the message preview'd properly. -- View this message in context: http://www.nabble.com/Struts-2-Validation-multiple-validators-on-same-field-tf4232748.htm

[S2]Field Validators, conditional

2007-06-07 Thread Skip Hollowell
So things are working much much better which means, of course, I have to break something. I am attempting to add some conditional validation to one of my forms... If a flag field is not true, then I need to have several other fields be required. Right now (before Conditional):

Re: [S2] How Validators of an Action are Found

2007-05-30 Thread Jon Wilmoth
t: Wednesday, May 30, 2007 9:56:43 AM Subject: Re: [S2] How Validators of an Action are Found for: /result.jsp it would be MyAction-save-validation.xml. musachy On 5/30/07, Jon Wilmoth <[EMAIL PROTECTED] > wrote: http://struts.apache.org/2.x/docs/validation.html says: Valid

Re: [S2] How Validators of an Action are Found

2007-05-30 Thread Musachy Barroso
for: /result.jsp it would be MyAction-save-validation.xml. musachy On 5/30/07, Jon Wilmoth <[EMAIL PROTECTED]> wrote: http://struts.apache.org/2.x/docs/validation.html says: Validation rules can be specified: Per Action class: in a file named ActionName-validation.xml Per Action alias

[S2] How Validators of an Action are Found

2007-05-30 Thread Jon Wilmoth
http://struts.apache.org/2.x/docs/validation.html says: Validation rules can be specified: Per Action class: in a file named ActionName-validation.xml Per Action alias: in a file named ActionName-alias-validation.xml Inheritance hierarchy and interfaces implemented by Action class: XWork searche

Re: [S2] Client-side code for custom validators

2007-03-16 Thread Célio Cidral Junior
The actual official validators implementations don't host such code themselves, and I was not able to find out where it is. I found it in /src/core/src/main/resources/template/xhtml/form-close-validate.ftl. It would be great if the docs did give a hint about that.

[S2] Client-side code for custom validators

2007-03-16 Thread Célio Cidral Junior
How do I implement client-side validation code for a custom validator? I have developed a custom validator that should generate client-side validation Javascript code, but I can't figure out where the implementation should lie. The actual official validators implementations don't host

Re: Strange problem with Validators in Struts 1.2.9

2007-02-27 Thread Dave Newton
--- Tom Bednarz <[EMAIL PROTECTED]> wrote: > I still do not feel very comfortable with writing > that many actions around 'CRUDing' an object. I generally use a single action for CRUD. You may want to look at DispatchAction (or something like that, it's been awhile) and consider the GET/POST divi

Re: Strange problem with Validators in Struts 1.2.9

2007-02-26 Thread Tom Bednarz
Yeah, looks like it is the wrong action I am calling, or better I need more actions to process a single user input. I still do not feel very comfortable with writing that many actions around 'CRUDing' an object. Thanks a lot anyway! Tom Dave Newton wrote: --- Tom Bednarz <[EMAIL PROTECTED]> wr

Re: Strange problem with Validators in Struts 1.2.9

2007-02-26 Thread Dave Newton
--- Tom Bednarz <[EMAIL PROTECTED]> wrote: > Any idea what I am doing wrong here??? Not "wrong", really, but probably you're using an action-mapping with validate='true' to do the initial form display. With no defaults it will validate with an error. Two ways to get around this are: 1) Use a pre

Strange problem with Validators in Struts 1.2.9

2007-02-26 Thread Tom Bednarz
I have the following problem: My validator gets NOT called as soon as I initialize some properties in my form. In my form bean I have: public class QueryTripsForm extends ValidatorActionForm { private String startPeriodDisplay = "2007-01-01"; private String endPeriodDisplay = "

Re: Validators

2005-05-09 Thread Kumar deepak
Please visit http://www.roseindia.net/struts/address_struts_validator.shtml its good tutorial. Regards --- Metal KoRn <[EMAIL PROTECTED]> wrote: > Hi guys I would like to validate a password and a > confirm_passwrod > fields to match, how can i do this validation with > the struts > validator.

Re: Validators

2005-05-08 Thread Suresh Khatri
There are plenty of examples in this official guide http://struts.apache.org/userGuide/dev_validator.html Original message >Date: Sun, 8 May 2005 11:38:28 -0500 >From: Metal KoRn <[EMAIL PROTECTED]> >Subject: Validators >To: Struts Users Mailing List > >

Validators

2005-05-08 Thread Metal KoRn
Hi guys I would like to validate a password and a confirm_passwrod fields to match, how can i do this validation with the struts validator. The other is to VALIDATE if a field value is > 0 Someone could help me with this?? thanx.

Re: Struts Password Validators

2005-03-26 Thread Dave Newton
Prashant Reddy wrote: Are there any Struts Password validators that verify if the password is part of a "dictionary" ? I don't know of any off-the-shelf ones, but it would be a pretty trivial custom validation. Dave -

Struts Password Validators

2005-03-25 Thread Prashant Reddy
Are there any Struts Password validators that verify if the password is part of a "dictionary" ? Obviously building strong passwords needs web applications to check against a dictionary. Prashant - To unsubscri

Re: FW: FW: multiple validators and ActionErrors

2004-05-12 Thread Irfandhy Franciscus
Users Mailing List' Subject: RE: FW: multiple validators and ActionErrors Sorry, that was a cut and past error on my behalf it really is Again sorry for the confusion... -Ben -Original Message- From: Susan Bradeen [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 4:12 PM

Re: FW: FW: multiple validators and ActionErrors

2004-05-10 Thread Susan Bradeen
ot appending the previous errors already in > the ActionErrors created by the previous validator. > > -Original Message- > From: Sifuentes, Ben > Sent: Saturday, May 08, 2004 1:06 AM > To: 'Struts Users Mailing List' > Subject: RE: FW: multiple validators and A

FW: FW: multiple validators and ActionErrors

2004-05-07 Thread Sifuentes, Ben
Message- From: Sifuentes, Ben Sent: Saturday, May 08, 2004 1:06 AM To: 'Struts Users Mailing List' Subject: RE: FW: multiple validators and ActionErrors Sorry, that was a cut and past error on my behalf it really is Again sorry for the confusion... -Ben -Origin

RE: FW: multiple validators and ActionErrors

2004-05-07 Thread Sifuentes, Ben
Sorry, that was a cut and past error on my behalf it really is -Ben -Original Message- From: Susan Bradeen [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 4:12 PM To: Struts Users Mailing List Subject: Re: FW: multiple validators and ActionErrors Ben, Theoretically, if

Re: FW: multiple validators and ActionErrors

2004-05-07 Thread Susan Bradeen
;Sifuentes, Ben" <[EMAIL PROTECTED]> wrote on 05/07/2004 09:42:46 AM: > > Is this the correct behavior for the use with multiple validators? > > If so, is there away to configure it use the same ActionErrors for all > validators within a form? > > If this is not

FW: multiple validators and ActionErrors

2004-05-07 Thread Sifuentes, Ben
Is this the correct behavior for the use with multiple validators? If so, is there away to configure it use the same ActionErrors for all validators within a form? If this is not suppose to be happening can someone give a glue as what might be the problem here? Do I need to override the

multiple validators and ActionErrors

2004-05-06 Thread Sifuentes, Ben
I'm using multiple validators for my form. I noticed by chance that each validator is overwriting the ActionErrors for the previous validator that was run. Can someone tell me why this is happening and how to solve the problem? Any help with the problem will be greatly appreciated. Below i