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
-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
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
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,
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
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
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
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.
> 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
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.
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
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
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
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
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
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?
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
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
*
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
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
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
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
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
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
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
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
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
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
--- 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
>
> Dave "Meta-Google" Newton
>
>
When did I get fired?
musachy
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
--- 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
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]
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
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
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
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
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
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.
Thanks
Dave.
__
Ufi Limited
Registered in England No. 3980770
Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
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
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
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
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):
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
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
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
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.
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
--- 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
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
--- 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
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 = "
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.
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
>
>
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.
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
-
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
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
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
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
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
;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
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
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
64 matches
Mail list logo