Re: validator form and OR-relations between fields

2004-03-19 Thread Stefan Burkard
ok, i found myself some infos at http://jakarta.apache.org/struts/userGuide/dev_validator.html ist there any possibility to use the struts 1.2.0-validators without using a nightly build? something like a milestone-build perhaps? or by using the commons validator itself? thanks and greetings

Re: Validator: Validation based on action path and not by form name

2004-03-18 Thread Adam Hardy
Kamakshya, if you use the ValidatorActionForm instead of the ValidatorForm, then you can do this. Adam On 03/18/2004 08:26 AM Prasad, Kamakshya wrote: Hi All, Is it possible for validation.xml to take action path attribute instead of form name for putting javascript validation rules for a

RE: Validator: Validation based on action path and not by form name

2004-03-18 Thread Prasad, Kamakshya
: Thursday, March 18, 2004 7:19 PM To: Struts Users Mailing List Subject: Re: Validator: Validation based on action path and not by form name Kamakshya, if you use the ValidatorActionForm instead of the ValidatorForm, then you can do this. Adam On 03/18/2004 08:26 AM Prasad, Kamakshya wrote: Hi All

[partly answered] Re: Validator: Validation based on action path and not by form name

2004-03-18 Thread Axel Gross
Hi Kamakshya! yes it is provided. just make it a ValidatorActionForm instead of a ValidatorForm. (check docs for further info) If you use DynaFormBeans, there is a DynaValdaterActionForm, but it never worked for me... hope this help, Axel On 2004-03-18 at 13:40:27 +0900, Prasad, Kamakshya

Re: Validator: Validation based on action path and not by form name

2004-03-18 Thread Axel Groß
path=/resolveAsset Regards Kamakshya -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 7:19 PM To: Struts Users Mailing List Subject: Re: Validator: Validation based on action path and not by form name Kamakshya, if you use

RE: validator validwhen error (Repost)

2004-03-15 Thread Betty Koon
Anyone has any idea? I haven't seen anyone's reply. Thanks. -Betty -Original Message- From: Betty Koon [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 8:07 PM To: [EMAIL PROTECTED] Subject: validator validwhen error Hi, I got the following validator error, but not sure why.

Re: Validator classes and validator-rules.xml

2004-03-08 Thread Adam Hardy
On 03/08/2004 12:02 PM Chris Searle wrote: I'm getting an odd exception: 2004-03-08 11:19:41,405 ERROR [org.apache.commons.validator.Validator] reflection: org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction,

Re: Validator doubt

2004-03-05 Thread Adam Hardy
On 03/05/2004 12:33 PM MOHAN RADHAKRISHNAN wrote: field property=cocNumber depends=integer msg name=integer key=error.coc.check/ arg0 key=label.coc.incident/ /field So if I input a value that is not a integer in

RE: validator-rules.xml

2004-03-04 Thread Wendy Smoak
From: Adam Hardy [mailto:[EMAIL PROTECTED] Where can I get the latest validator-rules.xml from? In the 1.2.0 distribution, it's in the 'lib' subdirectory along with the .jar files. Obviously I am assuming that this is a standard part of the code base - or is it? I need the latest

Re: validator-rules.xml

2004-03-04 Thread Niall Pemberton
validation-rules.xml is here http://cvs.apache.org/viewcvs.cgi/jakarta-struts/conf/share/ but, with struts 1.2 the javascript moved out of the XML into .js files in commons here:

Re: validator-rules.xml

2004-03-04 Thread Adam Hardy
OK, well I can't find the validator-rules.xml anywhere else, so I guess I'll have to download the struts 1.2 binary! I was looking through the validator's urlValidator class and it's pretty complicated with lots of perl-based pattern matching, so I'm not surprised there's no javascript

RE: Validator multiple message-resources

2004-03-02 Thread Mainguy, Mike
I'm not 100% sure but I believe this came up before. I that, while you can define multiple message.resources, you really can only actually USE one of them in sruts 1.1. I'd do a search of the archive because I think this has come up before. An Obstacle is something you see when you take your

RE: Validator / Tiles and modules - anybody done it?

2004-02-18 Thread Hibbs, David
this, though. =) David Hibbs, ACS Staff Programmer / Analyst American National Insurance Company -Original Message- From: Bill Johnson [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 11:25 PM To: Struts Users Mailing List Subject: RE: Validator / Tiles and modules - anybody

Re: Validator and DispatchAction

2004-02-18 Thread Carl Walker
I ran into the same problem and converted all my DispatchActions to Actions. The downside is that there are more class files, but the mappings seem cleaner, especially in handling the 'input' attribute for html:errors /. Also, using Actions lets me specify different values for the 'validate'

RE: Validator and DispatchAction

2004-02-18 Thread Renato Romano
PROTECTED] Tel.: 010 2712603 _ -Original Message- From: Carl Walker [mailto:[EMAIL PROTECTED] Sent: mercoledì 18 febbraio 2004 16.43 To: Struts Users Mailing List Subject: Re: Validator and DispatchAction I ran into the same problem and converted all my

RE: Validator and DispatchAction

2004-02-18 Thread Barnett, Brian W.
Set validate=false in your action mapping in struts-config. This tells the struts framework not to call validate. Then in your action class you can call validate where appropriate, i.e., the *save* method. -Original Message- From: Renato Romano [mailto:[EMAIL PROTECTED] Sent: Wednesday,

RE: Validator and DispatchAction

2004-02-18 Thread Nicholas L Mohler
Users Mailing List' [EMAIL PROTECTED] | | cc: | | Subject: RE: Validator

RE: Validator / Tiles and modules - anybody done it?

2004-02-17 Thread Hibbs, David
I'm curious if anyone out there has gotten Validator and/or Tiles working with Struts modules? Here are my questions. If you can answer any of them it would be a great help. Yep. Got 'em both working. Do you have to have the validator plugin defined in each module config file?

RE: Validator / Tiles and modules - anybody done it?

2004-02-17 Thread Bill Johnson
Thanks for the info David. One last question. Do you have to have the Validator plugin in every module's Struts config file if you simply want to have the same validation file for all modules? Can I just put the validator plugin definition in the default module's struts-config.xml and then all

Re: Validator Unknown host exception

2004-02-08 Thread Mark Lowe
Thanks Koh I'll give that a go. I resolved it temporally by using the 1.0 dtd. I'll give your method a go when/if i need anything from validator 1.1. Cheers again Mark On 7 Feb 2004, at 16:46, Kok Wei, Koh wrote: I was stucked in a dtd problem with commons validator. After wasting too much

Re: Validator Unknown host exception

2004-02-07 Thread Kok Wei, Koh
I was stucked in a dtd problem with commons validator. After wasting too much time on it, I decided to download the source from cvs ... set digester.validate(false) and rebuild the jar. You could try this if you wanna live without the dtd. Mark Lowe wrote: Anyone know how to get rid of the

Re: Validator-How to put the fields value in the resulting error message?

2004-02-03 Thread hgosper
I think you have to do this in code in your form's validate method. errors.add(new ActionError(errors.email), emailAddress); I could be wrong but this is the way that I do it anyway... I'm not sure if the struts validator can do this using an expression like you have tried to do. Heya Gosper

Re: Validator Framework - problem using Mask

2004-01-30 Thread Matt Bathje
Pani - it looks like you may be missing jakarta-oro.jar from your WEB-INF/lib directory. (Or have an older version of it possibly). Make sure it exists, and if not get it from either your struts distribution's lib directory or from the apache website and put it into WEB-INF/lib. If it does

Re: Validator Framework - problem using Mask

2004-01-30 Thread Pani R
Thanks Guys. It fixed the problem. But I dont how WSAD missed this JAR file. Anyway, it works now. Thank you all. Regards, Pani -- - Original Message - DATE: Fri, 30 Jan 2004 13:49:29 From: Matt Bathje [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Cc:

Re: Validator question

2004-01-26 Thread Markus
Hi. I have a sum field that can have different values (money or percent), depending on the other field isPercent. I want to validate money and percent type through the mask validator. I am not sure , whether I can set two mask validators with different masks on the same field. Maybe,

RE: Validator question

2004-01-26 Thread Andriy Ruzhevych
Thanks Markus Did you write your custom validator? I always use DynaValidatorForm and don't want to write custom java beans for this. -Original Message- From: Markus [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 4:04 PM To: Struts Users Mailing List Subject: Re: Validator

RE: Validator question

2004-01-26 Thread Markus
Thanks Markus Did you write your custom validator? I always use DynaValidatorForm and don't want to write custom java beans for this. Hi, No, for this solution you can't use DynaForms. You have to write an ActionForm. Kind regards, Markus

Re: Validator

2004-01-24 Thread Joe Hertz
I assume your goal is to say If this operation, DON'T use the rules defined in rule_validation.xml? What's in your rule_validation.xml and relevant JSP? Is that your whole validate() method??? Just based on instinct. I suspect the problem may be in the JSP tags vs what errors you are

RE: Validator

2004-01-24 Thread Mohan Radhakrishnan
PROTECTED] Subject: Re: Validator I assume your goal is to say If this operation, DON'T use the rules defined in rule_validation.xml? What's in your rule_validation.xml and relevant JSP? Is that your whole validate() method??? Just based on instinct. I suspect the problem may be in the JSP tags

RE: Validator

2004-01-24 Thread Joe Hertz
, 2004 4:30 AM To: \'Struts Users Mailing List\' Subject: RE: Validator Yes. That is what I am assuming. I tried html:errors / too The other methods are blocked. I can see that. The messages are not appearing though. Mohan -Original Message- From: Joe Hertz [mailto:[EMAIL

RE: Validator

2004-01-24 Thread Mohan Radhakrishnan
PROTECTED] Sent: Saturday, January 24, 2004 4:43 PM To: [EMAIL PROTECTED] Subject: RE: Validator Just out of curiosity, what happens with html:errors / if you make this change in your message resources declaration, assuming you haven't already. message-resources null=false ... -Original

RE: Validator

2004-01-24 Thread Mohan Radhakrishnan
] Sent: Saturday, January 24, 2004 4:43 PM To: [EMAIL PROTECTED] Subject: RE: Validator Just out of curiosity, what happens with html:errors / if you make this change in your message resources declaration, assuming you haven't already. message-resources null=false ... -Original Message

Re: Validator

2004-01-24 Thread Joe Hertz
Hertz [mailto:[EMAIL PROTECTED] Sent: Saturday, January 24, 2004 4:43 PM To: [EMAIL PROTECTED] Subject: RE: Validator Just out of curiosity, what happens with html:errors / if you make this change in your message resources declaration, assuming you haven't already. message-resources

RE: [Validator] Custom Validator Fails to Return to JSP

2004-01-23 Thread Jerry Jalenak
head-hung-in-abject-embarassment Gawd, I hate typos. /head-hung-in-abject-embarassment Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Jerry Jalenak [mailto:[EMAIL

RE: Validator JavaScript displaying? Mozilla bug?

2004-01-14 Thread Robert Nocera
Brad, I am using Mozilla 0.7 and I saw what you described the first time I went to your page. I can't get it to repeat however. Then I tried for kicks on another machine and didn't see it at all. On that other machine I am just getting validator set up on a project and I tried it, and it

RE: Validator for dates

2003-12-12 Thread Joe Hertz
Okay, so the datePattern issue is a bug. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16810 Is the Locale issue one as well? I can just make a new formset for the languages I'll support. It's not a huge deal, but still, would be nice to know. -Original Message- From: Joe Hertz

RE: Validator for dates

2003-12-12 Thread Joe Hertz
Damn, I hate when I keep finding answers right after I post. Not supported in 1.1 -Joe Never Mind - Emily Litella -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 6:07 PM To: 'Struts Users Mailing List' Subject: RE: Validator for dates

RE: Validator: Unwanted Client side AND Server side validation

2003-12-03 Thread Andy Schmidgall
Make sure you you have the return statement in the onsubmit handler. Otherwise it will always submit the form. It needs to look like this: onsubmit=return validateFooForm(this) If that's not the problem, you may be trying to validate using an incorrect field name. That's happened to me a few

Re: Validator: Unwanted Client side AND Server side validation

2003-12-03 Thread Rouven Gehm
Well i have to set validate false of the action in the struts-config.xml, then i only have client side validation without submitting, but then i have to call the .validate Method in the action to do the server-side validation, if i disable JavaScript. Any more ideas to this problem ? -

RE: Validator Backend Issues

2003-11-24 Thread David Friedman
/form I also got stuck on this when I first started using the Struts Validator. I hope this explanation helps. Regards, David -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 2:07 AM To: 'Struts Users Mailing List' Subject: RE: Validator Backend

RE: Validator Backend Issues

2003-11-24 Thread Joe Hertz
[mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 2:03 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Validator Backend Issues Joe, Nope. I was writing to you about that but you found your solution faster than I could type (my poor aching fingers at 2AM

RE: Validator Backend Issues

2003-11-24 Thread David Friedman
#javascript Regards, David -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 2:37 AM To: 'David Friedman' Subject: RE: Validator Backend Issues Don't laugh. Now I remember the problem I first encountered. I'm getting a generated javascript function

RE: Validator Backend Issues

2003-11-23 Thread Joe Hertz
Curious. Changing the ActionForm from a DynaValidatorActionForm to a DynaValidatorForm gets me backend validation. Have I just stumbled onto a bug? -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 1:46 AM To: 'Struts Users Mailing List'

RE: Validator Framework Value Object ActionForm

2003-11-21 Thread Steve Armstrong
Hi, I assume that you would just validate on the nested form property named contactValue.email. Cheers, -Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 4:38 AM To: [EMAIL PROTECTED] Subject: Validator Framework Value Object

RE: Validator with integer

2003-11-19 Thread Yansheng Lin
Can you turn off 'request a receipt' when you post to a public newsgroup next time? Thanks. To answer your question: Validator does not work with primitive type in older versions, if I remember correctly. I think they fixed it in the newer version, but not sure. -Original Message-

Re: Validator Que

2003-11-14 Thread Jeffrey Beck
hello everyone...is there some secret to getting struts 1.1 to work with weblogic server and JSTL ? Probably not. Can someone please help? Thanks, Jeff I'm running weblogic 7.0 SP4, with jdk131_08 I unpacked the struts-blank.war file from the struts 1.1 binary distribution and copied it to a

RE: validator, range

2003-11-06 Thread Budi Rostiarso
:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 1:17 PM To: Struts Users Mailing List Subject: RE: validator, range Why not just setup a few constants and use them later as your ${var:max} where appropriate? I got the maxInteger value from echo printing Integer.MAX_VALUE. Once you define

RE: validator, range

2003-11-05 Thread David Friedman
Why not just setup a few constants and use them later as your ${var:max} where appropriate? I got the maxInteger value from echo printing Integer.MAX_VALUE. Once you define a constant for maxInteger or maxFloat, just reference it as your var {$maxFloat} or var {$maxInteger}. form-validation

Re: Validator. key: {0} doesn't display.

2003-10-29 Thread Adam Hardy
On 10/29/2003 03:15 AM kimbuba wrote: hello all! i don't know if i've found a bug or i made a mistake. I set up a validator. All works but the key to be display on forms in case of errors. ---i have my app divided into modules. ---on my main config file i have resource message: The one i use for

Re: Validator. key: {0} doesn't display.

2003-10-29 Thread kimbuba
Hi Adam. Thnx for answering. I'll try with no config and than incrementally i'll see what's goin on. Thnx! Hi Kimbuba, I had this error too when I first set up Validator, but unfortunately I can't remember what it was. I suspect it is some small configuration problem. I suggest you make a

RE: validator for check box

2003-10-29 Thread Jayaraman Dorai
Does any one have any ideas or have written code to validate that at least one item is selected on the check box? Would be interested in the javascript code for the same. On the server side, I can do that validation on the action form, though doing it through struts validator will be the

RE: validator for check box

2003-10-29 Thread Saul Q Yuan
[mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 12:49 PM To: Struts Users Mailing List Subject: RE: validator for check box Does any one have any ideas or have written code to validate that at least one item is selected on the check box? Would be interested in the javascript code

RE: validator for check box

2003-10-29 Thread Jayaraman Dorai
is required, you need not ask an user to enter them. -Original Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 1:06 PM To: 'Struts Users Mailing List' Subject: RE: validator for check box I just submitted a bug and submitted a patch as well

RE: validator for check box

2003-10-29 Thread Saul Q Yuan
implementation and make them required regardless. I just ran into this situation. Saul -Original Message- From: Jayaraman Dorai [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 2:00 PM To: Struts Users Mailing List Subject: RE: validator for check box Been using an older

RE: validator for check box

2003-10-29 Thread Jayaraman Dorai
Yes, I agree, you are right. -Original Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 2:14 PM To: 'Struts Users Mailing List' Subject: RE: validator for check box This situation happens when the checkboxes and/or radio buttons

Re: Validator vs. XForms

2003-10-16 Thread Craig R. McClanahan
Stephan Wiesner wrote: ? The validator lets me set rules for the input fields in my forms. So does XForms. There are already tools to generate the necessary JavaScript for that (IBM Alphaworks) or to validate the input on the Server (Chiba) and display errors. The challenge for XForms is

RE: Validator question for radio buttons.

2003-10-16 Thread Saul Q Yuan
Well, some thoughts, do you have a page parameter in your jsp? Something like: input type=hidden name=page value=2 / and did you set validate=true in your action mapping? Saul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent:

Re: Validator

2003-10-16 Thread Barry Volpe
**Use the struts-validator.war example in the struts 1.1 release to learn more.** make sure you have this in your jsp: html:errors / This is where the validation error gets outputted. You should have this in your struts-config at the bottom where plug-ins go. !-- Add multiple validator

RE: Validator vs. XForms

2003-10-15 Thread Yansheng Lin
Sorry, I don't get it. It has nothing to do with the Validator Any pointers appreciated! -Original Message- From: Stephan Wiesner [mailto:[EMAIL PROTECTED] Sent: October 15, 2003 11:49 AM To: Struts Users Mailing List Subject: Validator vs. XForms What is the future of the

Re: Validator vs. XForms

2003-10-15 Thread Stephan Wiesner
? The validator lets me set rules for the input fields in my forms. So does XForms. There are already tools to generate the necessary JavaScript for that (IBM Alphaworks) or to validate the input on the Server (Chiba) and display errors. Stephan Yansheng Lin wrote: Sorry, I don't get it. It

RE: validator

2003-10-14 Thread Joe at Team345
You have to play around with it a bit. Try something like this: field property=users.userDate depends=date arg0 key=user.date/ arg0 name=date key=The format of the user date resource=false / var

Re: Validator exception when not configured

2003-10-03 Thread Yann Cébron
Hi, Is the validator initialization supposed to fail and print a stack trace in my log when I have not enabled it in my struts-config.xml? Running struts 1.1. Oct 3, 2003 11:03:47 AM org.apache.struts.validator.ValidatorPlugIn initResources INFO: Loading validation rules file from

Re: Validator exception when not configured

2003-10-03 Thread Morten Primdahl
INFO: Loading validation rules file from '/WEB-INF/validation.xml' Oct 3, 2003 11:03:48 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 67 column 11: The content of element type web-app must match web-app is in web.xml and has nothing to do with Validator ;-), see line

RE: Validator problem: html:messages tag and NullPointerException

2003-10-01 Thread Davide Bruzzone
Doh! Answered my own question: The page/form in question is using a combination of custom (i.e. using the validate method) and Validator validation, and one of the message keys in my own validate method was incorrect (i.e. The method was looking for a key that didn't exist). Cheers... Dave

RE: validator question: show value of a field in error

2003-09-17 Thread Jean-Michel Garnier
We want to do exaclty the same. After many attempts, it seems that Struts 1.1 Validator does not provide this functionality. It seems that there will be an evolution in Struts 1.2 with the validwhen validator, see : Designing Complex Validations with validwhen,

RE: Validator not configured properly?

2003-09-17 Thread Mohd Amin Mohd Din
Just an update, the error messages was not defined in the application resources file. Anyway, having another issue, since the action is a LookupDispatchAction, it has a few methods, execute, view and update. Whenever a user comes in, automatically it will go to execute which in turn will call the

RE: Validator-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-15 Thread Yuan, Saul (TOR-ML)
Rob, Thanks for your response. I ended up with changing the validator-rules.xml file myself to add support for multiple radios, checkboxes and selections (just for the validateRequired(form) function) If you would like to post a BugZilla report and provide a patch against the

Re: Validator, DynaForms, and Collections

2003-09-13 Thread Joe @ Team345
Thanks David. This was the only workaround I could think of as well. Yet it doesn't make sense to me - why are all the non-Collection fields on the form maintained (i.e. upon returning the input page text fields, etc. are all populated with previous values), but the Collections are not? Anyone

Re: Validator, DynaForms, and Collections

2003-09-13 Thread David Graham
--- Joe @ Team345 [EMAIL PROTECTED] wrote: Thanks David. This was the only workaround I could think of as well. Yet it doesn't make sense to me - why are all the non-Collection fields on the form maintained (i.e. upon returning the input page text fields, etc. are all populated with

RE: Validator, DynaForms, and Collections

2003-09-13 Thread Robert Taylor
when your web application starts up and then a single copy is available to all users. robert -Original Message- From: Joe @ Team345 [mailto:[EMAIL PROTECTED] Sent: Saturday, September 13, 2003 9:26 AM To: Struts Users Mailing List Subject: Re: Validator, DynaForms, and Collections

Re: Validator, DynaForms, and Collections

2003-09-13 Thread Joe @ Team345
That's it - I was looking at it from the wrong perspective and could make sense of it. Thanks! Joe David Graham wrote: --- Joe @ Team345 [EMAIL PROTECTED] wrote: Thanks David. This was the only workaround I could think of as well. Yet it doesn't make sense to me - why are all the

RE: Validator-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-12 Thread Yuan, Saul (TOR-ML)
Rob, Thanks for your response. I ended up with changing the validator-rules.xml file myself to add support for multiple radios, checkboxes and selections (just for the validateRequired(form) function) I checked the validator-rules.xml file in the latest nightly built (Sep 12), I noticed it

Re: Validator, DynaForms, and Collections

2003-09-12 Thread David Graham
Make sure your collection is stored in the session. If it's in the request you will lose it when returning to the input page. David --- Joe at Team345 [EMAIL PROTECTED] wrote: Hi, I'm using the Struts Validator (version 1.1 release) on DynaValidatorForms. Everything seems to work just

Re: Validator, DynaForms, and Collections

2003-09-12 Thread denis
Also, if you don't care that they keep the input already on the page, you can put the input in the struts-config file as the loader class (whatever is loading the collection onto the jsp). so instead of your action looking like: action path=/action type=com.blah.gum.actions.Action name=myForm

Re: Validator-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-12 Thread Robert Leland
Yuan, Saul (TOR-ML) wrote: Rob, Thanks for your response. I ended up with changing the validator-rules.xml file myself to add support for multiple radios, checkboxes and selections (just for the validateRequired(form) function) If you would like to post a BugZilla report and provide a patch

Re: Validator-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-11 Thread Robert Leland
Yuan, Saul (TOR-ML) wrote: Use the nightly build of struts, this was fixed on Sept 9. Please let me know if it works for you. -Rob Hi, I have some problems validating multiple radio buttons and checkboxes, selections on the client side. Tracking down to the javascript code defined in

Re: [Validator] E-Mail Verification

2003-09-09 Thread Gregory Seidman
On Mon, Sep 08, 2003 at 02:32:01PM -0700, David Graham wrote: } --- Paananen, Tero [EMAIL PROTECTED] wrote: } +1 on the new option but I think the allowed characters should be } } a-zA-Z0-9_.- } } -999 } } That's missing several perfectly valid

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread David Graham
Try: arg0 name=maxlength key=${var:maxlength} resource=false/ The number after arg is the position in the message to replace so you need a 0. David --- Sgarlata Matt [EMAIL PROTECTED] wrote: I'm having some trouble using the maxlength validation and I was hoping someone could give me some

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
Ah-hah, figured it out. This will not work: arg0 key=label.bin.title/ but this will work: arg0 key=label.bin.title resource=true/ I will enter this as a bug, because the documentation states that By default the arg0-arg3 elements will try to look up the key attribute in the message

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread David Graham
--- Sgarlata Matt [EMAIL PROTECTED] wrote: Ah-hah, figured it out. This will not work: arg0 key=label.bin.title/ but this will work: arg0 key=label.bin.title resource=true/ I will enter this as a bug, because the documentation states that By default the arg0-arg3 elements will try

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
David Graham wrote: I'm confused by your setup: arg0 name=fieldname key=label.bin.title/ Yeah, I was trying random stuff. The final thing that worked was: field property=description depends=maxlength arg0 key=label.bin.title resource=true/ arg1 name=maxlength key=${var:maxlength}

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread David Graham
--- Sgarlata Matt [EMAIL PROTECTED] wrote: David Graham wrote: I'm confused by your setup: arg0 name=fieldname key=label.bin.title/ Yeah, I was trying random stuff. The final thing that worked was: field property=description depends=maxlength arg0 key=label.bin.title

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
David Graham wrote: That's correct, the default is true. Maybe it's broken when you don't provide a name attribute? I agree; I will add this info to BugZilla. Thanks again for all your help. David Matt - To unsubscribe,

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Mike Kienenberger
Sgarlata Matt [EMAIL PROTECTED] wrote: I'm having some trouble using the maxlength validation and I was hoping someone could give me some help. I have a form with one required field and one field with a maximum length of 2000 characters. When input validation fails for both fields I get

Re: [Validator] E-Mail Verification

2003-09-08 Thread David Graham
--- Jerry Jalenak [EMAIL PROTECTED] wrote: Is there a published specification on e-mail addresses? I believe it's RFC 822. The reason I ask is that we are using the 'email' validator, and it's accepting as valid e-mail addresses such as 'u-+-+%^_/[EMAIL PROTECTED]'. I didn't think

RE: [Validator] E-Mail Verification

2003-09-08 Thread Paananen, Tero
Is there a published specification on e-mail addresses? The reason I ask is that we are using the 'email' validator, and it's accepting as valid e-mail addresses such as 'u-+-+%^_/[EMAIL PROTECTED]'. I didn't think Validator would accept these, but apparently is it. If there's not an

RE: [Validator] E-Mail Verification

2003-09-08 Thread Jerry Jalenak
: Monday, September 08, 2003 10:34 AM To: 'Struts Users Mailing List' Subject: RE: [Validator] E-Mail Verification Is there a published specification on e-mail addresses? The reason I ask is that we are using the 'email' validator, and it's accepting as valid e-mail addresses

Re: [Validator] E-Mail Verification

2003-09-08 Thread Mike Kienenberger
David Graham [EMAIL PROTECTED] wrote: --- Jerry Jalenak [EMAIL PROTECTED] wrote: Is there a published specification on e-mail addresses? I believe it's RFC 822. Unfortunately, I think that's a valid email address as defined in the RFC. You're better off writing your own. RFC 822 is very

Re: [Validator] E-Mail Verification

2003-09-08 Thread Robert Leland
David Graham wrote: --- Jerry Jalenak [EMAIL PROTECTED] wrote: Is there a published specification on e-mail addresses? I believe it's RFC 822. The reason I ask is that we are using the 'email' validator, and it's accepting as valid e-mail addresses such as 'u-+-+%^_/[EMAIL

Re: [Validator] E-Mail Verification

2003-09-08 Thread David Graham
--- Robert Leland [EMAIL PROTECTED] wrote: David Graham wrote: --- Jerry Jalenak [EMAIL PROTECTED] wrote: Is there a published specification on e-mail addresses? I believe it's RFC 822. The reason I ask is that we are using the 'email' validator, and it's

RE: [Validator] E-Mail Verification

2003-09-08 Thread Paananen, Tero
+1 on the new option but I think the allowed characters should be a-zA-Z0-9_.- -999 That's missing several perfectly valid characters in Email addresses, like a space, +, single quote, etc. The RFC defines the valid characters for a reason.

RE: [Validator] E-Mail Verification

2003-09-08 Thread Jerry Jalenak
Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 3:45 PM To: Struts Users Mailing List Subject: Re: [Validator] E-Mail Verification

RE: [Validator] E-Mail Verification

2003-09-08 Thread David Graham
--- Paananen, Tero [EMAIL PROTECTED] wrote: +1 on the new option but I think the allowed characters should be a-zA-Z0-9_.- -999 That's missing several perfectly valid characters in Email addresses, like a space, +, single quote, etc. The RFC

Re: Validator cannot find message key

2003-09-05 Thread Adam Hardy
, September 04, 2003 3:56 PM To: Struts Users Mailing List Subject: Re: Validator cannot find message key Paste the faulty part of your validation.xml file maybe we can see some strange things. I had a similar problem and it was only an error in writing... Yuan, Saul (TOR-ML) wrote: Hi, I am

RE: Validator cannot find message key

2003-09-05 Thread Yuan, Saul (TOR-ML)
] Sent: Friday, September 05, 2003 4:14 AM To: Struts Users Mailing List Subject: Re: Validator cannot find message key Hi Saul, to try to narrow this down a little, is the problem javascript or server-side, or both? One thing it might be is where you specified your

Re: Validator cannot find message key

2003-09-05 Thread Adam Hardy
] Sent: Friday, September 05, 2003 4:14 AM To: Struts Users Mailing List Subject: Re: Validator cannot find message key Hi Saul, to try to narrow this down a little, is the problem javascript or server-side, or both? One thing it might be is where you specified your ApplicationResources.properties

RE: Validator cannot find message key

2003-09-05 Thread Yuan, Saul (TOR-ML)
, Saul -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 11:16 AM To: Struts Users Mailing List Subject: Re: Validator cannot find message key I see you're validating manually in the action. Have you tried doing it automatically

Re: Validator cannot find message key

2003-09-04 Thread Koni Roth
Paste the faulty part of your validation.xml file maybe we can see some strange things. I had a similar problem and it was only an error in writing... Yuan, Saul (TOR-ML) wrote: Hi, I am using Struts Validator for validating a multi page form, some how the Validator cannot find the messages

RE: Validator cannot find message key

2003-09-04 Thread Yuan, Saul (TOR-ML)
: Koni Roth [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 3:56 PM To: Struts Users Mailing List Subject: Re: Validator cannot find message key Paste the faulty part of your validation.xml file maybe we can see some strange things. I had a similar problem and it was only

Re: Validator cannot find message key

2003-09-04 Thread Koni Roth
=Message Name newmessage.label.zone=Distribution Zone newmessage.label.audience=Target Audience ... -Original Message- From: Koni Roth [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 3:56 PM To: Struts Users Mailing List Subject: Re: Validator cannot find message key

  1   2   3   4   5   6   >