Re: Struts Url Validator

2007-08-09 Thread Jasper Floor
well, I'm pretty sure after checking the rfc's (1738 section3.4 and 3.1, 1034 section 3.5 adn 1123 section 2.1) that you are building vaild url's under the http scheme. So either the validator is doing something wrong or you are. Mind a URL is deffined as: scheme:scheme-specific-part so

how do I use an ognl expression to set a param value in a field validator

2007-08-09 Thread David Harland
Can someone please tell me how I use an ognl expression to set a param value in a field validator. Thanks Dave. __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield

Re: Struts Url Validator

2007-08-09 Thread semaj.najraham
is validated while those not ending with .com or dot else is not working. Is this the limitation of struts validator? Jasper Floor wrote: well, I'm pretty sure after checking the rfc's (1738 section3.4 and 3.1, 1034 section 3.5 adn 1123 section 2.1) that you are building vaild url's under

[s2] How do I create a custom date range validator?

2007-08-09 Thread mraible
I have the following validation XML that suites my needs perfectly: field name=startYear field-validator type=required messageStart year is required./message /field-validator field-validator type=int 1900 messagePlease enter a date after 1900./message /field

Struts Url Validator

2007-08-08 Thread semaj.najraham
Does anybody know if I can use Struts Url Validator for intranet url? For exampe: http://intranet or http://localhost:8080 Thanks, semaj -- View this message in context: http://www.nabble.com/Struts-Url-Validator-tf4238692.html#a12060732 Sent from the Struts - User mailing list archive

Re: Struts Url Validator

2007-08-08 Thread semaj.najraham
I can validate http://www.google.com, https://www.google.com, but not http://google Is this the limitation of struts url validator? I would really appreciate if someone would reply. Thank you, semaj semaj.najraham wrote: Does anybody know if I can use Struts Url Validator for intranet url

Re: [S2] Is there some BigDecimal validator and conversion routines?

2007-08-03 Thread Gabriel Belingueres
Seems that conversion to/from BigDecimal is covered by XWorks already. I'm thinking in base the bigdecimal validator from the double validator source code. 2007/8/2, Rene Gielen [EMAIL PROTECTED]: You are right, there is no bundled BigDecimal related validator in place, but it should be quite

Re: Number Validator

2007-08-02 Thread Rene Gielen
Since entering a NAN value for a number property should result in conversion errors, you might want to checkout this: http://cwiki.apache.org/confluence/display/WW/conversion+validator Richard Sayre schrieb: Is there a way to use the XML validation to check to see if a field is a number? I

Re: [S2] Is there some BigDecimal validator and conversion routines?

2007-08-02 Thread Rene Gielen
You are right, there is no bundled BigDecimal related validator in place, but it should be quite easy to implement (eg. extend FieldValidatorSupport). For registering, see http://cwiki.apache.org/confluence/display/WW/Validation BTW, is it really validation you are searching

[S2] Is there some BigDecimal validator and conversion routines?

2007-08-01 Thread Gabriel Belingueres
Hi, I want to enter numeric data in my form and I want it to go into a BigDecimal action value, however it seems that I can't validate it using some bigdecimal validator in the *-validation.xml file. There is a double validator, but I don't know if it will introduce rounding or truncation errors

Re: Number Validator

2007-07-31 Thread Jorge Martín Cuervo
Hi which version of commons validator are you using? http://struts.apache.org/1.2.9/userGuide/dev_validator.html i so, you can see: integer - validates that a field can be converted to an Integer. field property=ordernumber depends=integer arg0 key=order.number/ /field

Re: Number Validator

2007-07-31 Thread Richard Sayre
I am using Struts 2 wich uses the com.opensymphony.xwork2.validator.validators. It does not seem to have a validator to test to see if a a value can be converted to an integer. Is there a way to write my own validator to do this work? On 7/31/07, Jorge Martín Cuervo [EMAIL PROTECTED] wrote

Re: Number Validator

2007-07-31 Thread Max Pimm
Using the regex field validator. This is a regular expression that tests for a positive integer, it also allows the field to be empty ^\d*$ This would be the same but not allow an empty field ^\d+$ Your field validator would look something like field name=myfield field-validator

Number Validator

2007-07-30 Thread Richard Sayre
Is there a way to use the XML validation to check to see if a field is a number? I used integer to check for min and max but if I enter any text into the field it passes the validation. Thanks, Rich - To unsubscribe, e-mail:

Cannot load a validator resource from '/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml'

2007-07-25 Thread Vitaliy Selivanov
Hi , We are using Validator in Struts 1.2.7 in our application. When we run it on Tomcat6 everything is fine. When we move it to WebLogic 9.1 Express we can't start our deployment and we are getting this error message in the log file

Re: Cannot load a validator resource from '/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml'

2007-07-25 Thread Laurie Harper
Vitaliy Selivanov wrote: Truncated. see log file for complete stacktrace Did you look at the log file? Look for the root cause of the ServletUnavailable exception. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Struts 2 Using Validator with a Collection

2007-07-24 Thread Néstor Boscán
Hi I need to use the validation framework that comes with Struts 2 to validate a List that contains objects. I read that there is a collection validator but I can't find it in Struts 8, Struts 9 or XWork 2.0.4. Any ideas? Regards, Néstor Boscán

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: [SOLVED] Validator throws exception

2007-07-02 Thread Amulya
://www.nabble.com/Validator-throws-exception-tf147799.html#a11393285 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: 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 be

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

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

Struts 1.2.9 missing validator.xml and validator-rules.xml.

2007-06-29 Thread Søren Blidorf
Hi. I have upgraded to struts 1.2.9 and dont have validator.xml and validator-rules.xml. Could this be why my struts app does not work? Do I need validator? I have the jar in my lib. Soren, DK

Re: Struts 1.2.9 missing validator.xml and validator-rules.xml.

2007-06-29 Thread Nuwan Chandrasoma
Hi, If you have used the validator plug-in in you struts-confg, you need these 2 files, i dont think its a must if you havent used the plug-in Thanks, Nuwan - Original Message - From: Søren Blidorf [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent

Re: Struts 1.2.9 missing validator.xml and validator-rules.xml.

2007-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Søren, Søren Blidorf wrote: I have upgraded to struts 1.2.9 and don't have validator.xml and validator-rules.xml. validator-rules (in the 1.2 branch) somewhat recently moved into the struts-core.jar file. You should change your plug-in property

Validator does not validate!

2007-06-29 Thread Ramon Xuriguera i Albareda
I have some problems validating a form with validator framework under struts 1.3. After submitting, it forwards to success page even if the fields were not filled properly. (No exceptions are thrown). Here's some of my code: STRUTS-CONFIG.XML form-beans ... form-bean

Re: Validator does not validate!

2007-06-29 Thread Dave Newton
ValidationForm if you want the validation form name to be the bean name. See http://struts.apache.org/1.x/apidocs/org/apache/struts/validator/ValidatorForm.html http://struts.apache.org/1.x/apidocs/org/apache/struts/validator/ValidatorActionForm.html d

[S2] How do I create a client side validator?

2007-06-26 Thread Vincent Lin
Is there any document talking about how to create a client side validator in struts2? Thanks!

Re: [S2] How do I create a client side validator?

2007-06-26 Thread Dave Newton
--- Vincent Lin [EMAIL PROTECTED] wrote: Is there any document talking about how to create a client side validator in struts2? Yes, it's one of the links under the validation section on the wiki. http://struts.apache.org/2.x/docs/validation.html http://struts.apache.org/2.x/docs/client

RE: [S2] How do I create a client side validator?

2007-06-26 Thread mahesh
unscribe -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 4:35 PM To: Struts Users Mailing List Subject: Re: [S2] How do I create a client side validator? --- Vincent Lin [EMAIL PROTECTED] wrote: Is there any document talking about how

RE: [S2] How do I create a client side validator?

2007-06-26 Thread Dave Newton
rescribe Now there is no escape. --- mahesh [EMAIL PROTECTED] wrote: unscribe -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 4:35 PM To: Struts Users Mailing List Subject: Re: [S2] How do I create a client side validator

RE: [S2] How do I create a client side validator?

2007-06-26 Thread King, William S.
create a client side validator? --- Vincent Lin [EMAIL PROTECTED] wrote: Is there any document talking about how to create a client side validator in struts2? Yes, it's one of the links under the validation section on the wiki. http://struts.apache.org/2.x/docs/validation.html http

RE: [S2] How do I create a client side validator?

2007-06-26 Thread Dave Newton
Please repost under a new subject heading; you may get more responses that way. --- King, William S. [EMAIL PROTECTED] wrote: I see in documentation that to utilize the Ajax form validation I need to install the Dojo toolkit. S2 comes w/ Dojo (at least in the 2.0 version). d.

Re: [S2] How do I create a client side validator?

2007-06-26 Thread Vincent Lin
Thanks for your help. But I only see how to configure client side validators. What I want is to create a customized client side validator. The build in validators can't meet our requirements such as validating the length of Chinese characters. On 6/26/07, Dave Newton [EMAIL PROTECTED] wrote

Freemarker Error! on validator i18n message

2007-06-18 Thread Pedro Solorzano
a plain message instead a properties key it works fine. Any Clue? HelloAction-validation.xml: validators field name=name field-validator type=requiredstring message key=error.campo.requerido/ !--message This will work Fine! Campo Requerido

Re: [S2] int validator for longs?

2007-06-15 Thread Paolo Beccari
I got the same problem a few days ago, solved using the Conversion Validator: http://www.mail-archive.com/user@struts.apache.org/msg60494.html HTH P. - Original Message - From: Jon Wilmoth [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, June 14

Re: Struts validator maskif

2007-06-14 Thread ugachaka
say nothing, except what they should say. br of course i am wondering is my syntax is ok, i dont now can i write like this - br br varbr var-namecheck/var-namebr var-value(country=='US')/var-valuebr /varbr -- View this message in context: http://www.nabble.com/Struts-validator-%22maskif%22

Re: Struts validator maskif

2007-06-14 Thread ugachaka
say nothing, except what they should say. of course i am wondering is my syntax is ok, i dont now can i write like this - check (country=='US') -- View this message in context: http://www.nabble.com/Struts-validator-%22maskif%22-tf3913144.html#a8597 Sent from the Struts - User

Re: Struts validator maskif

2007-06-14 Thread ugachaka
say nothing, except what they should say. of course i am wondering is my syntax is ok, i dont now can i write like this - check (country=='US') -- View this message in context: http://www.nabble.com/Struts-validator-%22maskif%22-tf3913144.html#a8600 Sent from the Struts - User mailing

Re: Struts validator maskif

2007-06-14 Thread ugachaka
sorry! -- View this message in context: http://www.nabble.com/Struts-validator-%22maskif%22-tf3913144.html#a8601 Sent from the Struts - User mailing list archive at Nabble.com.

[S2] int validator for longs?

2007-06-14 Thread Jon Wilmoth
I noticed there's only two bundled numeric data type validator (int, double). Is there any reason the S2 int validator can't be used for long field validations (or other data types w/out decimals)? p.s. The http://struts.apache.org/2.x/docs/validation.html page is missing a link

Struts validator maskif

2007-06-13 Thread ugachaka
Hi. I am wondering is there really a validation attribute maskif. I one forum, i read that i just need to add the following lines to my validation-rules and validation xml files and it will work- validator name=validif classname=validation.ValidIf method=validateValidIf methodParams

Struts validator maskif

2007-06-13 Thread ugachaka
Hi. I am wondering is there really a validation attribute maskif. I one forum, i read that i just need to add the following lines to my validation-rules and validation xml files and it will work- validator name=validif classname=validation.ValidIf method=validateValidIf methodParams

[S2] Commons Validator

2007-06-13 Thread Veronica Iturrioz
Hi, anybody know if it's possible to use Commons Validator with Struts 2 ? I try with the struts validation framework (provided by XWork), but the error visualization is too dependent from the theme. thanks in advance

Re: Struts validator maskif

2007-06-13 Thread Laurie Harper
ugachaka wrote: Hi. I am wondering is there really a validation attribute maskif. I one forum, i read that i just need to add the following lines to my validation-rules and validation xml files and it will work- validator name=validif classname=validation.ValidIf method=validateValidIf

Re: [S2] Commons Validator

2007-06-13 Thread Laurie Harper
Veronica Iturrioz wrote: Hi, anybody know if it's possible to use Commons Validator with Struts 2 ? I try with the struts validation framework (provided by XWork), but the error visualization is too dependent from the theme. I'm not sure what you're trying to do; use Commons Validator

Exception while using validator framework

2007-06-01 Thread bhanuprakash.singh
Hi all, I have created a sample struts application Im trying to make use of the validator framework The steps which i have carried out are 1 .I have included validation.xml and validation-rules.xml in WEB-INF 2 .then in struts-config.xml i have included the required

Re: Exception while using validator framework

2007-06-01 Thread wang huan
19:57:00,515 ERROR [ActionServlet] Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency. java.lang.NoSuchMethodError:

RE: Exception while using validator framework

2007-06-01 Thread bhanuprakash.singh
validator framework 19:57:00,515 ERROR [ActionServlet] Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency. java.lang.NoSuchMethodError

RE: Exception while using validator framework

2007-06-01 Thread Fei Fei
update your commons-validator.jar file,it is an old version, - A Fei - Subject: Exception while using validator framework Date: Fri, 1 Jun 2007 12:22:45 +0530 From: [EMAIL PROTECTED] To: user@struts.apache.org Hi all,I have created a sample struts application Im trying to make use

Re: Exception while using validator framework

2007-06-01 Thread Fitzwilliam . Aaron
Guess you used the wrong version of the commons-validator.jar. Luck. Fitzwilliam -- 北半球的狗几月份掉毛?

RE: Exception while using validator framework

2007-06-01 Thread bhanuprakash.singh
HI Fei Thanks for your kind response As said by u I have replaced existing commons-validator with new one commons-validator-1.3.1.jar But the problems still persists Regards Bhanu -Original Message- From: Fei Fei [mailto:[EMAIL PROTECTED] Sent: Friday, June 01, 2007 12:34 PM

Re: Exception while using validator framework

2007-06-01 Thread Fitzwilliam . Aaron
Tell me those things: 1. struts' version u r using; 2. DOCTYPE of both validation.xml and validation-rules.xml -- 北半球的狗几月份掉毛?

Re: Exception while using validator framework

2007-06-01 Thread Oguz Kologlu
also make sure you delete the old one. Oz On 01/06/2007, at 6:27 PM, [EMAIL PROTECTED] wrote: HI Fei Thanks for your kind response As said by u I have replaced existing commons-validator with new one commons-validator-1.3.1.jar But the problems still persists Regards Bhanu -Original

RE: Exception while using validator framework

2007-06-01 Thread bhanuprakash.singh
Sir I have removed the old one and put the new one -Original Message- From: Oguz Kologlu [mailto:[EMAIL PROTECTED] Sent: Friday, June 01, 2007 2:00 PM To: Struts Users Mailing List Subject: Re: Exception while using validator framework also make sure you delete the old one. Oz On 01

RE: Exception while using validator framework

2007-06-01 Thread Fei Fei
OH.. you can referrence this web page to fix your problem: http://www.junlu.com/msg/200341.html _ With Windows Live Hotmail, you can personalize your inbox with your favorite color.

Re: [S2] field-validator regex ignoring given message

2007-05-24 Thread Paolo Beccari
Paolo Beccari [EMAIL PROTECTED] wrote: I suppose this message is always returned when a conversion error occurs. Next step is finding a way to hide it. I'll post the solution, if ever find one. Dave Newton [EMAIL PROTECTED] wrote: $ find . -name *.properties | xargs grep -i invalid

Re: [S2] field-validator regex ignoring given message

2007-05-24 Thread Paolo Beccari
Paolo Beccari [EMAIL PROTECTED] wrote: I suppose this message is always returned when a conversion error occurs. Next step is finding a way to hide it. I'll post the solution, if ever find one. Dave Newton [EMAIL PROTECTED] wrote: $ find . -name *.properties | xargs grep -i invalid

Re: [S2] field-validator regex ignoring given message

2007-05-24 Thread Dave Newton
--- Paolo Beccari [EMAIL PROTECTED] wrote: Paolo Beccari [EMAIL PROTECTED] wrote: I suppose this message is always returned when a conversion error occurs. Dave Newton [EMAIL PROTECTED] wrote:

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Paolo Beccari
--- Paolo Beccari [EMAIL PROTECTED] wrote: field-validator type=regex param name=expression[0-9]/param message key=requirednumber/ /field-validator /field /validators --- Dave Newton [EMAIL PROTECTED] wrote: If it's defined as a Long in your action then you might

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Dave Newton
--- Paolo Beccari [EMAIL PROTECTED] wrote: field-validator type=regex param name=expression[0-9]/param message key=requirednumber/ /field-validator /field /validators If it's defined as a Long in your action then you might not be able to run a regex on it--I would

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Lance
param name=expression[0-9]*(\.[0-9]+)?/param Paolo Beccari wrote: --- Paolo Beccari [EMAIL PROTECTED] wrote: field-validator type=regex param name=expression[0-9]/param message key=requirednumber/ /field-validator /field /validators --- Dave Newton [EMAIL PROTECTED

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Paolo Beccari
searching a way to validate (through Action-validation.xml) a field that must be numeric, and that is defined as a Long in the action corresponding to the Form. According to this, field-validator type=int is inadequate, and I was not able to found a number (or Long?) validation. P

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Lance
not work, if the variable is not a String. I'm searching a way to validate (through Action-validation.xml) a field that must be numeric, and that is defined as a Long in the action corresponding to the Form. According to this, field-validator type=int is inadequate, and I was not able to found a number

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Dave Newton
--- Paolo Beccari [EMAIL PROTECTED] wrote: So how to validate a Long value? You might just be able to use the conversion validator. http://struts.apache.org/2.x/docs/conversion-validator.html I have not tried this, so I'd be interested in the results if you do! Thanks, Dave

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Paolo Beccari
--- Paolo Beccari [EMAIL PROTECTED] wrote: So how to validate a Long value? You might just be able to use the conversion validator. http://struts.apache.org/2.x/docs/conversion-validator.html I have not tried this, so I'd be interested in the results if you do! Thanks, Dave I'm going

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Paolo Beccari
Paolo Beccari [EMAIL PROTECTED] wrote: So how to validate a Long value? Dave Newton [EMAIL PROTECTED] wrote: You might just be able to use the conversion validator. http://struts.apache.org/2.x/docs/conversion-validator.html I have not tried this, so I'd be interested in the results if you

Re: [S2] field-validator regex ignoring given message

2007-05-23 Thread Dave Newton
--- Paolo Beccari [EMAIL PROTECTED] wrote: I suppose this message is always returned when a conversion error occurs. Next step is finding a way to hide it. I'll post the solution, if ever find one. $ find . -name *.properties | xargs grep -i invalid

[S2] field-validator regex ignoring given message

2007-05-19 Thread Paolo Beccari
Hi all, I'm a S2 newbie. Trying to validate input in a *-validation.xml, and found a strange behaviour: validators field name=id field-validator type=required message key=required/ /field-validator field-validator type=regex !--param name=regex[0-9

Re: [S2] field-validator regex ignoring given message

2007-05-19 Thread Will Smith
On 5/19/07, Paolo Beccari [EMAIL PROTECTED] wrote: Hi all, I'm a S2 newbie. Trying to validate input in a *-validation.xml, and found a strange behaviour: validators field name=id field-validator type=required message key=required/ /field-validator field

Re: [S2] Date validator error!

2007-04-16 Thread Laurie Harper
the following configuration for a java.util.Date field: field-validator type=date short-circuit=true param name=min01/01/1990/param param name=max01/01/2000/param message key=validator.date / /field-validator But, when running it I got the following

[S2] Date validator error!

2007-04-14 Thread Telmo Costa
Hi everyone, I have the following configuration for a java.util.Date field: field-validator type=date short-circuit=true param name=min01/01/1990/param param name=max01/01/2000/param message key=validator.date / /field-validator But, when running

Validator Problem

2007-04-13 Thread Tom Bednarz
I use a form derived from ValidatorActionForm. If the validator fires a message and redisplays the form, I loose my request params! I do: html:link action=/insertExpense.do?op=new styleClass=button this actions opens a form with a request parameter op set to new. inside this form I do

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: html:link action=/insertExpense.do?op=new styleClass=button this actions opens a form with a request parameter op set to new. inside

java.lang.SecurityException: No class by name: validator

2007-04-12 Thread Felipe Rodrigues
Hi guys, Have somebody ever seen this message when trying to validate a form with ajax theme? java.lang.SecurityException: No class by name: validator and of course, knows how to fix that? I think it can be a classpath problem or something I'm missing, but can't figure out what is that. I've

Re: java.lang.SecurityException: No class by name: validator

2007-04-12 Thread Felipe Rodrigues
Seems to me it is the same issue from the Showcase App. Does Anyone knows how to fix that? Thanks, Felipe Felipe Rodrigues wrote: Hi guys, Have somebody ever seen this message when trying to validate a form with ajax theme? java.lang.SecurityException: No class by name: validator

Re: Action Validator ans s:url...

2007-04-07 Thread Dave Newton
Anyone? Beuler? Beuler? I'm still not seeing it, and it's going to irritate me all weekend. --- Dave Newton [EMAIL PROTECTED] wrote: --- [EMAIL PROTECTED] wrote: Actually annotations do work at the method level. That's what I thought too :/ I must be doing something toopid, and I would

Re: Action Validator ans s:url...

2007-04-06 Thread Ted Husted
On 4/5/07, Dave Newton [EMAIL PROTECTED] wrote: Having the validation files key off of method names would be pretty handy (and avoid some extra action defs). I poked around, and it seems the design justification is to allow the methods to be validated differently in different contexts. I do

Re: Action Validator ans s:url...

2007-04-06 Thread stanlick
Amen! I really don't know if I have this straight or not. On 4/6/07, Ted Husted [EMAIL PROTECTED] wrote: On 4/5/07, Dave Newton [EMAIL PROTECTED] wrote: Having the validation files key off of method names would be pretty handy (and avoid some extra action defs). I poked around, and it seems

Re: Action Validator ans s:url...

2007-04-06 Thread Dave Newton
--- Ted Husted [EMAIL PROTECTED] wrote: but I don't see a case for a context beyond the method. I would think that the method is the context. If a method needs to be validated, then it needs to be validated. That was more or less my thought, perhaps not quite as well-stated ;) then we

Re: Action Validator ans s:url...

2007-04-06 Thread Musachy Barroso
Does anybody know what is the status of that JSR? musachy On 4/5/07, Ted Husted [EMAIL PROTECTED] wrote: On 4/5/07, Dave Newton [EMAIL PROTECTED] wrote: Turns out the annotations are class-based as well (again, I had just been lucky so far)... If the validation files were based off of

Re: Action Validator ans s:url...

2007-04-05 Thread stanlick
be intercepted by the form validator. I recently discovered the Java annotation @SkipValidation and now wonder if there might be an attribute, flag, switch, bit of XML, or interceptor stack I could massage to avoid this unwanted feature. You know, this extreme flexibility reminds me of a Dilbert I saw a few

Re: Action Validator ans s:url...

2007-04-05 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: It strikes me as odd that a hyperlink not related to the form would be intercepted by the form validator. Meh; if an action is Validatable then it's Validatable, you know? I have to agree with Ted--if you're passing a parameter that's being used by the method, why

Re: Action Validator ans s:url...

2007-04-05 Thread stanlick
. The immediate solution looks like replacing the S2 tags which are seemingly at the heart of S2! On 4/5/07, Dave Newton [EMAIL PROTECTED] wrote: --- [EMAIL PROTECTED] wrote: It strikes me as odd that a hyperlink not related to the form would be intercepted by the form validator. Meh

Re: Action Validator ans s:url...

2007-04-05 Thread Ted Husted
. By now, the framework doesn't know what creature manufactured the GET request. A request is a request is a request. Whether a form was used is also not relevant (or even known). A form can submit by GET too. When an Action class has a validator, the methods that are excluded from validation can

Re: Action Validator ans s:url...

2007-04-05 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: Maybe you missed the part about *not* passing a parameter with the link url? Maybe I was answering your *first* question? This link allows an item to be deleted and the parameter being passed is a read-only hibernate id that was loaded into the page during the

Re: Action Validator ans s:url...

2007-04-05 Thread stanlick
Ted -- This is a great explanation! Can you add to this how Validator naming works with respect to wildcard methods? For instance: CourseAction list() create() Course-validation.xml and supposedly support for something like Course-create-validation.xml I think I remember reading

Re: Action Validator ans s:url...

2007-04-05 Thread Ted Husted
more sense.) The MailReader application for Struts 2 uses wildcards as well as per-method validation. HTH, Ted http://www.husted.com/ted/blog/ On 4/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ted -- This is a great explanation! Can you add to this how Validator naming works with respect

Re: Action Validator ans s:url...

2007-04-05 Thread Dave Newton
--- Ted Husted [EMAIL PROTECTED] wrote: Note that it is the action name not the method name. (Though, I often wonder if the method name would make more sense.) Sakes alive, really?! Hmm, I wonder if I've just been naming things luckily up 'til now--I may have to rename some validation files,

Re: Action Validator ans s:url...

2007-04-05 Thread stanlick
, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ted -- This is a great explanation! Can you add to this how Validator naming works with respect to wildcard methods? For instance: CourseAction list() create() Course-validation.xml and supposedly support for something like Course-create

Re: Action Validator ans s:url...

2007-04-05 Thread Dave Newton
--- Ted Husted [EMAIL PROTECTED] wrote: Note that it is the action name not the method name. (Though, I often wonder if the method name would make more sense.) Apparently I've just been lucky (and had fewer method-specific validations than I thought :/ so far. Having the validation files key

Re: Action Validator ans s:url...

2007-04-05 Thread Ted Husted
On 4/5/07, Dave Newton [EMAIL PROTECTED] wrote: Turns out the annotations are class-based as well (again, I had just been lucky so far)... If the validation files were based off of method names the annotations could be as well, which would be a nice, unified view of things, IMO. The validation

Re: Action Validator ans s:url...

2007-04-05 Thread Dave Newton
--- Ted Husted [EMAIL PROTECTED] wrote: The validation comes out of XWork, so we'd have to file a ticket over there. My guess is that it wouldn't be worth it; it's easy enough to see the need for the existing way of doing it and it's not *that* much more work. I guess. :/ If anybody else chimes

Re: Action Validator ans s:url...

2007-04-05 Thread stanlick
Actually annotations do work at the method level. On 4/5/07, Dave Newton [EMAIL PROTECTED] wrote: --- Ted Husted [EMAIL PROTECTED] wrote: Note that it is the action name not the method name. (Though, I often wonder if the method name would make more sense.) Apparently I've just been lucky

Re: Action Validator ans s:url...

2007-04-05 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: Actually annotations do work at the method level. That's what I thought too :/ I must be doing something toopid, and I would have sworn I did this before (but I already made one huge mis-assumption about my validations); hopefully it'll be obvious to a fresh set of

Re: Validator Issue

2007-03-23 Thread Ted Husted
this field on a web page: s:textfield name=user.zip.zip label=%{getText('user.zip.zip')} size=10 onblur=zipChanged(this.value);onfocus=clearCityAndStateFields(); / and this validator configured for it: field name=user.zip.zip field-validator type=requiredstring message key

Re: Validator Issue

2007-03-23 Thread stanlick
. On 3/22/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have this field on a web page: s:textfield name=user.zip.zip label=%{getText('user.zip.zip')} size=10 onblur=zipChanged(this.value );onfocus=clearCityAndStateFields(); / and this validator configured for it: field name

Re: Validator Issue

2007-03-23 Thread Ted Husted
(); / and this validator configured for it: field name=user.zip.zip field-validator type=requiredstring message key=requiredstring / /field-validator /field The only way I can pass the Zip Code is required validation is to remove the validator entry

Re: Validator Issue

2007-03-23 Thread stanlick
=user.zip.zip label=%{getText('user.zip.zip')} size=10 onblur=zipChanged(this.value );onfocus=clearCityAndStateFields(); / and this validator configured for it: field name=user.zip.zip field-validator type=requiredstring message key=requiredstring

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:

<    1   2   3   4   5   6   7   8   9   10   >