Re: validator type="regex" : param name is regex , not expression

2013-09-19 Thread Chris
Thanks for the informations De : Lukasz Lenart À : Struts Users Mailing List Envoyé le : Jeudi 19 septembre 2013 7h59 Objet : Re: validator type="regex" : param name is regex , not expression Sometime ago ... with 2.3.12. I have renamed exp

Re: validator type="regex" : param name is regex , not expression

2013-09-18 Thread Lukasz Lenart
Sometime ago ... with 2.3.12. I have renamed expression to regex as right now you can define regexExpression as Ognl expression - there was name clash without renaming ;-) http://struts.apache.org/development/2.x/docs/version-notes-23120.html 2013/9/18 Chris : > Hello , > > Do you have any idea s

Re: validator type="regex" : param name is regex , not expression

2013-09-18 Thread Chris
Hello , Do you have any idea since when ( which version ) the word expression is no more avaliable ? In some examples on the Web or in Books, the word used is still "expression". Regards Chris --

Re: validator type="regex" : param name is regex , not expression

2013-09-16 Thread Lukasz Lenart
Done, thanks for reporting! https://cwiki.apache.org/confluence/display/WW/Form+Validation+Using+XML 2013/9/16 Chris : > Hi Lukasz, > > Good example of regex in > http://struts.apache.org/development/2.x/docs/form-validation-using-xml.html , > and choose between JavaScript validator or Java val

Re: Validator with annotations

2013-06-28 Thread Simone Camillo Buzzi
Hi, the goal that I'm trying to reach is to reduce the number of variables and method into the Struts action to improve code readability and maintainability. I'm using hibernate, so I could obtain a good synergy if i can set value coming from parameters directly into the hibernate model bean, maint

Re: Validator with annotations

2013-06-28 Thread Maurizio Cucchiara
Ciao Simone, have a look at VisitorFieldValidator [1] [2] and model driven. IMO it's better to keep the annotations inside the action rather than the bean (you can have different use cases for the same model). [1] http://struts.apache.org/release/2.3.x/docs/visitorfieldvalidator-annotation.html

Re: Validator plugin error

2008-07-15 Thread danipruebas
OMG, this is an EPIC FAIL : ) Yes, i have saved and referenced it in WEB-INF. Best regards, - Original Message - From: "Lukasz Lenart" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, July 15, 2008 7:23 PM Subject: Re: Validator plugin err

Re: Validator plugin error

2008-07-15 Thread Lukasz Lenart
As I remember, there is a bug with this, out dtd to WEB-INF and add reference to it http://www.developerdotstar.com/community/node/472 Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Validator plugin error

2008-07-15 Thread danipruebas
uot; <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, July 15, 2008 3:36 PM Subject: Re: Validator plugin error 15-jul-2008 15:06:33 org.apache.commons.digester.Digester fatalError GRAVE: Parse Fatal Error at line -1 column -1: Premature end of file. org.xml.sax.SAX

Re: Validator plugin error

2008-07-15 Thread Lukasz Lenart
> 15-jul-2008 15:06:33 org.apache.commons.digester.Digester fatalError > GRAVE: Parse Fatal Error at line -1 column -1: Premature end of file. > org.xml.sax.SAXParseException: Premature end of file. You should also change dtd headers for validator-rules.xml and validations.xml to reflect new commo

Re: Validator plugin error

2008-07-15 Thread Dave Newton
--- On Tue, 7/15/08, Dani <[EMAIL PROTECTED]> wrote: > Should I update the depencies of commons-validator 1.3.1. > as shown in this link? Well yes; you can't just update a library and assume that it will work without its dependencies. Dave --

Re: Validator plugin error

2008-07-15 Thread Dani
Lukasz Lenart escribió: Check this http://issues.apache.org/struts/browse/STR-2862?focusedCommentId=37312#action_37312 Maybe either you have duplicated commons-validator.jar or in wrong version? Regards I have updated commons-validator.jar to latest version 1.3.1 replacing the jar file in

Re: Validator plugin error

2008-07-15 Thread Lukasz Lenart
Check this http://issues.apache.org/struts/browse/STR-2862?focusedCommentId=37312#action_37312 Maybe either you have duplicated commons-validator.jar or in wrong version? Regards -- Lukasz http://www.lenart.org.pl/ - To unsub

Re: Validator plugin error

2008-07-15 Thread Dani
Lukasz Lenart escribió: Hi, Try to comment such entry for Validator plugin and check again, do you have any logs from your container? Maybe the problem is elsewhere? Regards The validator-rules.xml & validations.xml are located under the correct path /WEB-INF/, as specified in the struts

Re: Validator plugin error

2008-07-15 Thread Lukasz Lenart
Hi, Try to comment such entry for Validator plugin and check again, do you have any logs from your container? Maybe the problem is elsewhere? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECT

Re: validator shortcuts idea

2007-10-16 Thread Jim Cushing
Despite the redundancy, having separate validators is nice since it allows you to customize the error message. For example, you might want to say, "Please enter your age," "Age must be a valid number," and, "You must be at least 13 years old to ride this ride." On Oct 16, 2007, at 3:44 PM,

Re: Validator does not validate!

2007-07-03 Thread Ramon Xuriguera i Albareda
I don't know exactly what the problem was. After spending lots of hours in front of the computer it worked! I think the problem had something to do with what you say or, probably with the exception I define in the action mapping. Anyway, thanks. -

Re: Validator does not validate!

2007-06-30 Thread Tim B
"Ramon Xuriguera i Albareda" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks but, it doesn't work either... > Any other ideas? > I have worked with an earlier version of the Struts validator and found that the failure mode when there was a syntax error in validation.xml for a

Re: Validator does not validate!

2007-06-30 Thread Paul Benedict
Can you repost relevant code and config with any corrections you made? Ramon Xuriguera i Albareda wrote: Thanks but, it doesn't work either... Any other ideas? 2007/6/30, Dave Newton <[EMAIL PROTECTED]>: Subclassing ValidationActionForm means that the form "name" attribute in validation.xml w

Re: Validator does not validate!

2007-06-30 Thread Ramon Xuriguera i Albareda
Thanks but, it doesn't work either... Any other ideas? 2007/6/30, Dave Newton <[EMAIL PROTECTED]>: Subclassing ValidationActionForm means that the form "name" attribute in validation.xml would be the action path, not the bean name. You want ValidationForm if you want the validation form name to

Re: Validator does not validate!

2007-06-29 Thread Dave Newton
--- Ramon Xuriguera i Albareda wrote: > VALIDATION.XML > > > > FORMBEAN (SubjectForm.java) > It extends ValidationActionForm Subclassing ValidationActionForm means that the form "name" attribute in validation.xml would be the action path, not the bean name. You want ValidationForm if you want

Re: Validator Problem

2007-04-13 Thread Laurie Harper
Tom Bednarz wrote: I use a form derived from ValidatorActionForm. If the validator fires a message and redisplays the form, I loose my request params! I do: this actions opens a form with a request parameter op set to new. inside this form I do something like:

Re: Validator Issue

2007-03-23 Thread stanlick
Thanks Ted! I felt a little queezy about using "requiredstring" but couldn't get Eclipse to reveal a list of valid atrribute values with code assist. On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote: On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > what about simple type conversion?

Re: Validator Issue

2007-03-23 Thread Ted Husted
On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: what about simple type conversion? How will you ever have non-string coming from html? Does this mean we are back to domain object with only strings? No, it means that we have a special validator for Strings to cover both the notion of be

Re: Validator Issue

2007-03-23 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > what about simple type conversion? How will you ever > have non-string coming from html? Does this mean we > are back to domain object with only strings? S2 (and others) already do simple type conversion. You will "never" have non-strings coming from the *browser*

Re: Validator Issue

2007-03-23 Thread stanlick
what about simple type conversion? How will you ever have non-string coming from html? Does this mean we are back to domain object with only strings? On 3/23/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- [EMAIL PROTECTED] wrote: > Are you suggesting that we *ARE* back to needing > *DUMB* string

Re: Validator Issue

2007-03-23 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Are you suggesting that we *ARE* back to needing > *DUMB* strings in our *RICH* domain models? I > thought the tired old FormBean was a thing of the > past! That's backwards. You were testing an int with a String test and it failed *because* it wasn't viewing every

Re: Validator Issue

2007-03-23 Thread Ted Husted
There's a different validator for numeric types. * http://struts.apache.org/2.x/docs/required-validator.html On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Oh! It is an int. - To unsubscribe, e-mail: [EMAIL PROTEC

Re: Validator Issue

2007-03-23 Thread stanlick
Are you suggesting that we *ARE* back to needing *DUMB* strings in our *RICH* domain models? I thought the tired old FormBean was a thing of the past! On 3/23/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- [EMAIL PROTECTED] wrote: > Oh! It is an int. That could cause a problem :) Probably n

Re: Validator Issue

2007-03-23 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Oh! It is an int. That could cause a problem :) Probably not a good idea anyway, since you may want to enforce either Zip or Zip+4 and not let people enter "145". d. 8:00? 8:

Re: Validator Issue

2007-03-23 Thread stanlick
Oh! It is an int. Scott On 3/23/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- [EMAIL PROTECTED] wrote: > What do you mean by target type? What (Java) type is the value you are validating? > > On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote: > > > > Is the target type a String? > > > > On

Re: Validator Issue

2007-03-23 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > What do you mean by target type? What (Java) type is the value you are validating? > > On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote: > > > > Is the target type a String? > > > > On 3/23/07, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > > Actually, I remove

Re: Validator Issue

2007-03-23 Thread stanlick
What do you mean by target type? On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote: Is the target type a String? On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Actually, I removed the js attributes and it behaved the same. ---

Re: Validator Issue

2007-03-23 Thread Ted Husted
Is the target type a String? On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Actually, I removed the js attributes and it behaved the same. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Validator Issue

2007-03-23 Thread stanlick
Actually, I removed the js attributes and it behaved the same. On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote: What happens if the custom JavaScripts are not used, but the validation element is used? If the JavaScript seems to be culprit, then I'd use FireBug or something to watch the reques

Re: Validator Issue

2007-03-23 Thread Ted Husted
What happens if the custom JavaScripts are not used, but the validation element is used? If the JavaScript seems to be culprit, then I'd use FireBug or something to watch the request, to see if there is something funky going on there. The server-side can only handle what it receives. -Ted. On 3

Re: Validator Issue

2007-03-23 Thread stanlick
Server side. On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote: Is it the server-side or client-side validation that is firing when it should not? If it is the client-side, and the custom scripts are based on Prototype, there could be DOM-related issues, since Prototype rewrites the DOM. -Ted.

Re: Validator Issue

2007-03-23 Thread Ted Husted
Is it the server-side or client-side validation that is firing when it should not? If it is the client-side, and the custom scripts are based on Prototype, there could be DOM-related issues, since Prototype rewrites the DOM. -Ted. On 3/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I have

Re: Validator question Struts 1.2.9

2007-03-21 Thread Dilip Ladhani
Thanks, I figured it out. I made sure this was by default bundle. On 3/21/07, Niall Pemberton <[EMAIL PROTECTED]> wrote: On 3/21/07, Dilip Ladhani <[EMAIL PROTECTED]> wrote: > I have gotten the validator to work in may of my projects, but I am > stuck on this one and was wondering if someone can

Re: Validator question Struts 1.2.9

2007-03-21 Thread Niall Pemberton
On 3/21/07, Dilip Ladhani <[EMAIL PROTECTED]> wrote: Thanks for the reply. However, after doing that I get the error Unhandled exception thrown during validation: No message resources found for bundle: messages java.lang.NullPointerException: No message resources found for bundle: messages

Re: Validator question Struts 1.2.9

2007-03-21 Thread Niall Pemberton
On 3/21/07, Dilip Ladhani <[EMAIL PROTECTED]> wrote: I have gotten the validator to work in may of my projects, but I am stuck on this one and was wondering if someone can help. I have a MessageResources.properties under WEB-INF/classes which contains all the messages. In my struts-config I have

Re: Validator question Struts 1.2.9

2007-03-21 Thread Dilip Ladhani
Thanks for the reply. However, after doing that I get the error Unhandled exception thrown during validation: No message resources found for bundle: messages java.lang.NullPointerException: No message resources found for bundle: messages Also, on various jsps, I would have to, I would have to

Re: Validator question Struts 1.2.9

2007-03-21 Thread Nuwan Chandrasoma
make your message resource as the defautl one, dont put any key just add the entry in struts-config and see., Thanks & Regards, Nuwan. - Original Message - From: "Dilip Ladhani" <[EMAIL PROTECTED]> To: Sent: Wednesday, March 21, 2007 4:48 PM Subject: Validator question Struts 1.

Re: Validator validWhen

2007-03-01 Thread Niall Pemberton
On 2/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Thank you for your reply. Why is it only server-side ? Because no-one has written the equivalent functionality in JavaScript. Validwhen uses antlr to evaluate expressions on the server side - replicating its functionality in JavaScript

Re: Validator validWhen

2007-02-28 Thread jmpdev
Thank you for your reply. Why is it only server-side ? Regards, Selon Niall Pemberton <[EMAIL PROTECTED]>: > No its server-side only. > > Niall > > On 2/27/07, jmpdev <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I would like to know if it is possible to call validWhen on the client > > side? >

Re: Validator validWhen

2007-02-27 Thread Niall Pemberton
No its server-side only. Niall On 2/27/07, jmpdev <[EMAIL PROTECTED]> wrote: Hi, I would like to know if it is possible to call validWhen on the client side? I didn't find validWhen.js is it possible to find it somewhere? Thanks, Regards, Jean-Marie. --

Re: Validator question

2007-02-27 Thread Laurie Harper
Tom Bednarz wrote: I have a FormBean derived from ValidatorActionForm. I define validation rules for certain properties in validation.xml. No I like to add some additional validations which depend on user input. I thought, I can handle this in the validate(..) method but it gets never called!

Re: Validator error what does this mean?

2007-01-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, Hehl, Thomas wrote: > I'm still pretty new to struts and am taking over an app from a previous > developer. I have added some validation and got the following error: > > ValidWhen Error for field ' additionalInfo' - line 1:18: unexpected toke

RE: Validator Framework 1.29

2006-12-20 Thread nagesh.kumar
Use this -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 9:16 AM To: Struts Users Mailing List Subject: Re: Validator Framework 1.29 On 12/20/06, Jim Reynolds <[EMAIL PROTECTED]> wrote: &

Re: Validator Framework 1.29

2006-12-20 Thread Niall Pemberton
On 12/20/06, Jim Reynolds <[EMAIL PROTECTED]> wrote: Hello, I am having some issues with getting the messages from the validator framework from showing. Actually, I have some old code like this: that used to work, before upgrading

Re: Validator FrameWork

2006-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, Thomas Thomas wrote: > Thank u, > it works great :-) No problem. > I have : > > > > May I ask u, dear Christopher, what's the difference of it with what u have > done : > > key="error.unmatched.password.confirm" /> > I'm not s

Re: Validator - Date validation

2006-12-08 Thread Thomas Thomas
Ok everything is fixed, I forgot to do : ValidatorUtils.getValueAsString

Re: Validator - Date validation

2006-12-08 Thread Thomas Thomas
I get the String literals and not the real numbers

Re: Validator - Date validation

2006-12-08 Thread Thomas Thomas
I make a custom validator myDate I try to give as var value the day and the month, but when I try to get the values of the vars day and month, I get the String literals birthDay and birthMonth day

Re: Validator FrameWork

2006-12-08 Thread Thomas Thomas
Thank u, it works great :-) I have : May I ask u, dear Christopher, what's the difference of it with what u have done :

Re: Validator FrameWork

2006-12-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, Thomas Thomas wrote: > (*this* == password) > > But it still doesn't work This is exactly what I have in my setup, and it works like a charm: test (

Re: Validator FrameWork

2006-12-07 Thread Thomas Thomas
Instead of : (passwordCheck == password) I put : (*this* == password) But it still doesn't work

Re: Validator FrameWork

2006-12-07 Thread Thomas Thomas
Dear Sean, thank u for your precious support. I added this : test (passwordCheck == password) But it's not working :-(

RE: Validator FrameWork

2006-12-07 Thread O'Shea, Sean
Use the validWhen validator for the password and the passwordCheck fields: http://struts.apache.org/1.2.x/userGuide/dev_validator.html You'll need to add the passwordCheck field to your registerForm. I've found these links useful when investigating commons-validator: * commons validator exa

Re: Validator Framework problem

2006-11-30 Thread Niall Pemberton
On 11/28/06, Thomas Thomas <[EMAIL PROTECTED]> wrote: Hi, since I added a constraint for the length with minlength, I have the following errror : 28-nov.-2006 21:31:33 org.apache.struts.validator.DynaValidatorForm validate GRAVE: org.apache.struts.util.StrutsValidator org.apache.commons.validato

Re: Validator Framework problem

2006-11-30 Thread Thomas Thomas
Nobody can help me ? No-one has *Any* idea ?

RE: Validator without Struts

2006-11-30 Thread Saeed, Rada
U can use the nn-validation.js, have a look : http://www.siteexperts.com/tips/functions/ts21/page10.asp -Original Message- From: Jim Reynolds [mailto:[EMAIL PROTECTED] Sent: Thursday, November 30, 2006 12:22 AM To: user@struts.apache.org Subject: Validator without Struts Hello, I have

Re: Validator without Struts

2006-11-29 Thread Niall Pemberton
On 11/29/06, Jim Reynolds <[EMAIL PROTECTED]> wrote: Hello, I have the need to do some form validations, but the site in question is not running Struts, nor WW or any framework. :-( It is an older site and I have been commissioned to do some validtion within it. I was hoping that the Validator

Re: Validator without Struts

2006-11-29 Thread Jon Wilmoth
You can try http://jakarta.apache.org/commons/validator/ which is commonly used w/Struts 1. - Original Message From: Jim Reynolds <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Wednesday, November 29, 2006 2:21:49 PM Subject: Validator without Struts Hello, I have the need to d

Re: validator framework

2006-10-23 Thread Laurie Harper
Yariel Ramos Moreno wrote: How can I validate a form field to accept numbers from 1 to 99 or an underscore (_) using the validator framework. The application is in Struts 1.1. If you didn't have the requirement to accept underscore, intRange would be what you were looking for. With that requi

Re: validator framework

2006-10-20 Thread Sócrates Medina
Check this document, slide 30 by Shang Shin. http://www.javapassion.com/j2ee/StrutsValidationFramework_speakernoted.pdf I think it's a good explanation...Check it out. Check intRange key, how he works with it. For dominicans, cubans are our brothers...we share historical events! I hope this co

Re: Validator framework javascript error messages

2006-10-16 Thread Laurie Harper
Puneet Lakhina wrote: Hi, I have the following key value pair in ApplicationResource.properties required = {0} is required. I used this when I was doing only server side validation, to display a list of error messages when some validation failed. Now Im using the to do the same thing on clien

Re: Validator and At Least 1 Checkbox Checked

2006-09-20 Thread Paul Benedict
Laurie, absolutely, use the required validation. I do that for my applications. Since he was specifically talking about length of an array, there is no such validation; but as long as a valid is present, it was submitted. Laurie Harper wrote: Can't you just use the 'required' validation rule?

Re: Validator and At Least 1 Checkbox Checked

2006-09-20 Thread Laurie Harper
Can't you just use the 'required' validation rule? Or possibly a validwhen with something like *this* != null and *tihs*.length >= 1? Admittedly I haven't tried either, though. L. Paul Benedict wrote: I've always wanted this feature myself. However, no such validation exists.. but if you writ

Re: Validator and At Least 1 Checkbox Checked

2006-09-19 Thread Paul Benedict
I've always wanted this feature myself. However, no such validation exists.. but if you write it, you could share it back to the Struts community. So you'll have to add this validation yourself by override the validate() method of your form, checking the property's length; if it is not null t

Re: Validator FRamework

2006-09-07 Thread Laurie Harper
sheetal wrote: Thanks for the help.. Yesterday I tried and it worked... But the problem now is that its message string is not coming... I had made an entry for it in applicationresoUrces.properties... BUT STILL IT'S UNABLE TO PICK IT FROM THERE.. What message string? How are you specifying it?

Re: validator framework

2006-09-07 Thread Laurie Harper
Gomathi wrote: Hai, Is the validator framework is only for dynavalidatorform? I am using actionform using validator framework.Its not working fine how? You need to derive your form beans from ValidatorActionForm, not just ActionForm. DynaValidatorForm extends ValidatorForm, so that should be

Re: Validator FRamework

2006-09-05 Thread sheetal
Laurie Harper wrote: sheetal wrote: Hi All, I had problem.. I am trying to implement client side validation using Validator FRamework. I have added validator-rules.xml, and validation.xml, in my web -inf file. And made following entry in validation.xml

Re: Validator FRamework

2006-09-05 Thread Laurie Harper
sheetal wrote: Hi All, I had problem.. I am trying to implement client side validation using Validator FRamework. I have added validator-rules.xml, and validation.xml, in my web -inf file. And made following entry in validation.xml

Re: Validator FRamework

2006-09-05 Thread Jorge Martín Cuervo
ups, sorry i thought you were using dinaform sorry El mar, 05 de 09 de 2006 a las 13:13, Jorge Martín Cuervo escribió: > hi > > why you use > com.hns.nme.frontend.apps.cmdexecution.form.SelectCommandForm instead > java.lang.String in form-bean type? > > El mar, 05 de 09 de 2006 a las 10:48, sh

Re: Validator FRamework

2006-09-05 Thread Jorge Martín Cuervo
hi why you use com.hns.nme.frontend.apps.cmdexecution.form.SelectCommandForm instead java.lang.String in form-bean type? El mar, 05 de 09 de 2006 a las 10:48, sheetal escribió: > Hi All, > I had problem.. > I am trying to implement client side validation using Validator FRamework. > I have add

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Tom Bednarz
Thanks a lot for all that feedback. I think it gets me a step further. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Wendy Smoak
On 8/30/06, Tom Bednarz <[EMAIL PROTECTED]> wrote: What is the correct or preferred way to link business-objects with form beans. Is this only possible by copying data from a business object to a form bean or is there any 'smarter' way? You might want to take a look at FormDef: https://formdef

Re: validator and DynaValidatorActionForm

2006-08-30 Thread David Durham
Tom Bednarz wrote: So I used Don't specify value. Simply copy the properties from a subscriber object (session scoped or otherwise) to a formbean (the one being used to render the form values). There's a copyProperties method in org.apache.commons.beanutils.BeanUtils: http://tinyurl.c

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Tom Bednarz
Thanks a lot for all your input and help. It looks like I need some basic concepts clarified. Here a very short background of the application and what my intension is: The object 'subscriber' is a special business object: it represents the logged in user and contains a lot of information about

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Laurie Harper
Tom Bednarz wrote: David Durham wrote: Tom Bednarz wrote: I think the validator fires too early, but probably I am doing something wrong. Maybe somebody can hp! Basically, you need 2 actions, one to populate the form and one to change the personal data. Or at least two action mappings, if

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Wendy Smoak
On 8/30/06, Tom Bednarz <[EMAIL PROTECTED]> wrote: The idea is, that I show a form that contains already data and the user can edit it. When the form is submitted, the validator should check the user input. Here is my validator configuration: ... Now it seems, that the validator gets fired BEF

RE: validator and DynaValidatorActionForm

2006-08-30 Thread David Friedman
Why are you making these fields so complex? You have Instead of the simple form: ? Why do you need to specify all of that redundant information like value and name when you have the property attribute? And why are you pulling values from the session scope instead of the request data that

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Tom Bednarz
David Durham wrote: Tom Bednarz wrote: I think the validator fires too early, but probably I am doing something wrong. Maybe somebody can hp! Basically, you need 2 actions, one to populate the form and one to change the personal data. David, This is EXACTLY what I like to AVOID! With th

Re: validator and DynaValidatorActionForm

2006-08-30 Thread David Durham
Tom Bednarz wrote: I think the validator fires too early, but probably I am doing something wrong. Maybe somebody can hp! Basically, you need 2 actions, one to populate the form and one to change the personal data. I have the following form bean defined in struts-config.xml: type="o

Re: Validator html args

2006-08-22 Thread Niall Pemberton
Theres no way of picking up what was rendered in your view in the validation config. If you're "hard coding" your label values rather than putting them in the message resources though, you can do the same in your validation.xml - using the resource="false" attribute. ... or even the whole err

Re: Validator Client-Side and Custom Classes

2006-08-16 Thread Scott Van Wart
Mississippi John Hurt wrote: Hi, I want to do client-side validation using a custom class I can specify in the validator.xml section. But my question is if I use a custom class, then how the heck can Struts generate the custom javascript for it in the jsp if I'm using a custom java class I wr

Re: Validator

2006-08-12 Thread Niall Pemberton
From Struts 1.2.7 onwards you can change the keys used with the "header", "footer", "prefix" and "suffix" attributes http://struts.apache.org/1.2.9/userGuide/struts-html.html#errors Niall On 8/11/06, Kalra, Ashwani <[EMAIL PROTECTED]> wrote: They are hard coded in mailto:[EMAIL PROTECTED] Se

Re: Validator

2006-08-12 Thread Ted Husted
On 8/11/06, Kalra, Ashwani <[EMAIL PROTECTED]> wrote: They are hard coded in It's not a configurable property, but, if it's an issue for someone, just plug in your own version of the errors tag. -Ted. - To unsubscribe, e-mail

Re: Validator

2006-08-11 Thread Dakota Jack
Don't think you really understand the issue, Simian. On 8/11/06, Monkeyden <[EMAIL PROTECTED]> wrote: Who cares where they're called or what their values are? Just add them to the application resources file. On 8/11/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: > > > Hi, > > I would like to

Re: Validator

2006-08-11 Thread Monkeyden
Who cares where they're called or what their values are? Just add them to the application resources file. On 8/11/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: Hi, I would like to change the key name of errors.header, errors.footer, errors.suffix ... but I don't see where they are called.

RE: Validator

2006-08-11 Thread Kalra, Ashwani
They are hard coded in mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 2:58 PM To: Struts Users Mailing List Subject: Validator Hi, I would like to change the key name of errors.header, errors.footer, errors.suffix ... but I don't see where they are called. Have you got any idea ? Tha

Re: RE : Validator dynamic var

2006-08-07 Thread Niall Pemberton
ilto:[EMAIL PROTECTED] Envoyé: lundi 7 août 2006 15:37 À: Struts Users Mailing List Objet: Re: Validator dynamic var You can do this in Struts 1.3.x and Commons Validator 1.3.0 where the element can come from a resource bundle. See the "1.2 Variables in Resource Bundles" section here:

RE : Validator dynamic var

2006-08-07 Thread Jean-Marie Pitre
Thank you Niall, Do you know if I can call a java class instead of a properties file ? Jean-Marie. -Message d'origine- De : Niall Pemberton [mailto:[EMAIL PROTECTED] Envoyé : lundi 7 août 2006 15:37 À : Struts Users Mailing List Objet : Re: Validator dynamic var You can do th

RE: Validator not getting called and I can't see why [resolved]

2006-08-07 Thread Givler, Eric
er.valueOf? -Original Message- From: Bart Busschots [mailto:[EMAIL PROTECTED] Sent: Sunday, August 06, 2006 3:33 PM To: Struts Users Mailing List Subject: Re: Validator not getting called and I can't see why [resolved] OK, I got all this figured out in the end. The validator was being called

Re: Validator dynamic var

2006-08-07 Thread Niall Pemberton
You can do this in Struts 1.3.x and Commons Validator 1.3.0 where the element can come from a resource bundle. See the "1.2 Variables in Resource Bundles" section here: http://wiki.apache.org/jakarta-commons/ValidatorVersion120 Niall On 8/7/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: H

Re: Validator not getting called and I can't see why [resolved]

2006-08-07 Thread Bart Busschots
Romu wrote: U mean a javascript error ? No, I don't use clientside validation on my forms. It's going to the server anyhow so I don't see the point, just an extra layer for things to not work in. u need to define a message.properties file too which will define the error messa Good point

Re: Validator not getting called and I can't see why [resolved]

2006-08-07 Thread Romu
for example : mentor.createStudentGroup .groupName.label = the Student Group Name 2006/8/7, Romu <[EMAIL PROTECTED]>: U mean a javascript error ? u need to define a message.properties file too which will define the error messa 2006/8/6, Bart Busschots < [EMAIL PROTECTED]>: > OK, I go

Re: Validator not getting called and I can't see why [resolved]

2006-08-07 Thread Romu
U mean a javascript error ? u need to define a message.properties file too which will define the error messa 2006/8/6, Bart Busschots <[EMAIL PROTECTED]>: OK, I got all this figured out in the end. The validator was being called but because of problems with the page attribute in the form th

Re: Validator not getting called and I can't see why [resolved]

2006-08-06 Thread Bart Busschots
OK, I got all this figured out in the end. The validator was being called but because of problems with the page attribute in the form the validator appears to have been receiving a page value of zero and hence not validating the items on pages 1 or two because neither 1 nor 2 are less that or

  1   2   3   4   5   >