Re: Validation doubt

2008-06-30 Thread Narayana S
Hi Jeromy and Lukasz, Thanks for your reply, the information provided by you is really helpful. i could understand well about validation framework with your explanation. Thanks a lot. On Mon, Jun 30, 2008 at 1:45 PM, Jeromy Evans < [EMAIL PROTECTED]> wrote: > Narayana S wrote: > >>

Re: Validation doubt

2008-06-30 Thread Jeromy Evans
Narayana S wrote: Hi, as per my understanding, we can implement validations in struts 2 in the following ways... 1. overriding validate() method in Action class Use the validate() method for complex validation that cannot be implement anywhere else. You want to avoid duplicating valid

Re: Validation doubt

2008-06-30 Thread Lukasz Lenart
Hi, > what is the clear difference between these 3 approaches? Annotations and XML allow you to only use defined validators, with validate() method you can do anything you want, base your validation on more complicated business rules. > and how can i implement client side validations in struts

Re: validation problem

2008-06-26 Thread Laurie Harper
nal Message From: Dave Newton <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Wednesday, June 25, 2008 3:37:38 PM Subject: Re: validation problem Whoops, as the other reply said, it's the tag [1], not . Dave [1] http://struts.apache.org/2.x/docs/fielderror.html --- On We

Re: validation problem

2008-06-25 Thread Lukasz Lenart
> I can implement custom validation using validate(), but I've around 30 > transactional forms with this type of requirements. Maybe it will be better if you implement your own validator for thoese 30 forms? I think it will be soft option then very compilcated expression above ;-) Regards -- Lu

Re: validation problem

2008-06-25 Thread ManiKanta G
ve Newton <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Wednesday, June 25, 2008 3:37:38 PM Subject: Re: validation problem Whoops, as the other reply said, it's the tag [1], not . Dave [1] http://struts.apache.org/2.x/docs/fielderror.html --- On Wed, 6/25/08, Dave N

Re: validation problem

2008-06-25 Thread Dave Newton
ECTED]> > To: Struts Users Mailing List > > Sent: Wednesday, June 25, 2008 3:37:38 PM > Subject: Re: validation problem > > Whoops, as the other reply said, it's the > tag [1], not . > > Dave > > [1] http://struts.apache.org/2.x/docs/fielderror.html > >

Re: validation problem

2008-06-25 Thread Lukasz Lenart
Hi, > How the validation should be done for fields which are only displayed in > certain conditions? If I do this through the XML file the validation is done > all the time even when the field is not visible. You can implement validate() or validate() and remember to implement Validatable inte

Re: validation problem

2008-06-25 Thread Istvan Kozma
Struts Users Mailing List Sent: Wednesday, June 25, 2008 3:37:38 PM Subject: Re: validation problem Whoops, as the other reply said, it's the tag [1], not . Dave [1] http://struts.apache.org/2.x/docs/fielderror.html --- On Wed, 6/25/08, Dave Newton <[EMAIL PROTECTED]> wrote: >

Re: validation problem

2008-06-25 Thread Dave Newton
Whoops, as the other reply said, it's the tag [1], not . Dave [1] http://struts.apache.org/2.x/docs/fielderror.html --- On Wed, 6/25/08, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Wed, 6/25/08, Anshu Dhamija wrote: > > i am facing problem in performing validation through > > xml actually

Re: validation problem

2008-06-25 Thread ManiKanta G
Anshu Dhamija wrote: hi i am new to struts 2.i am facing problem in performing validation through xml actually i want to display message at the top of my form instaed of at field level can anyone please help me Hi, In struts2 there is a provision for handling the error messages by field

Re: validation problem

2008-06-25 Thread Dave Newton
--- On Wed, 6/25/08, Anshu Dhamija <[EMAIL PROTECTED]> wrote: > i am facing problem in performing validation through > xml actually i want to display message at the top of > my form instaed of at field level > can anyone please help me The validation messages are placed in the form by the S2 for

Re: validation and action names with slashes

2008-06-24 Thread Roberto Nunnari
Jeromy Evans wrote: Roberto Nunnari wrote: Jeromy Evans wrote: Roberto Nunnari wrote: This is what I intend to do. At the moment the CodeBehind/Convention plugin estimates the name of view candidates (eg. package-action-result.jsp) This change would just need to extend that to check if a ti

Re: validation and action names with slashes

2008-06-23 Thread Jeromy Evans
Roberto Nunnari wrote: Jeromy Evans wrote: Roberto Nunnari wrote: This is what I intend to do. At the moment the CodeBehind/Convention plugin estimates the name of view candidates (eg. package-action-result.jsp) This change would just need to extend that to check if a tile exists with that

Re: validation and action names with slashes

2008-06-23 Thread Roberto Nunnari
Jeromy Evans wrote: Roberto Nunnari wrote: Maybe the convention plugin should look into the tiles.xml file, or check to see if the tiles plugin or tiles listener are in the game.. Most probably, the definition names in tiles.xml should follow the conventions, so that This is what I intend to

Re: Validation

2008-06-23 Thread Struts Two
Make sure your validation xml is named as  "ActionClass-alias-validation.xml", if you want to apply it only to one method in ur action class  Naming it as "Actionclass-validation.xml" would apply your validation to all methods in your action. __

Re: Validation

2008-06-22 Thread Dave Newton
--- On Sun, 6/22/08, Doug Pham <[EMAIL PROTECTED]> wrote: > I have an action that have multiple methods that I mapped > to.  Only one action that I need validation for, the rest > I don't need.  Where can I get information to set this > up or how do I set it up using the XML file? http://struts.ap

Re: validation and action names with slashes

2008-06-22 Thread Jeromy Evans
Roberto Nunnari wrote: Maybe the convention plugin should look into the tiles.xml file, or check to see if the tiles plugin or tiles listener are in the game.. Most probably, the definition names in tiles.xml should follow the conventions, so that This is what I intend to do. At the moment t

Re: validation and action names with slashes

2008-06-22 Thread Roberto Nunnari
B-INF/tiles/content/auctionView.jsp" /> Martin wrote: Roberto- Just to clarify..how should the Results mapping annotations configuration be introduced? Thanks Martin-- - Original Message - From: "Roberto Nunnari" <[EMAIL PROTECTED]> To: "Struts Users Ma

Re: validation and action names with slashes

2008-06-21 Thread Martin
Roberto- Just to clarify..how should the Results mapping annotations configuration be introduced? Thanks Martin-- - Original Message - From: "Roberto Nunnari" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Saturday, June 21, 2008 7:25 PM S

Re: validation and action names with slashes

2008-06-21 Thread Roberto Nunnari
Jeromy Evans wrote: Roberto Nunnari wrote: Hi Jeromy! The Convention plugin looks very interesting! Does it work with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend. What about mixing it with tiles? Would it require specifying tiles results thus breaking the convenience of conventions

Re: validation and action names with slashes

2008-06-21 Thread Roberto Nunnari
built! going to experiment a bit. Thank you and best regards. -- Robi Jeromy Evans wrote: Roberto Nunnari wrote: Jeromy Evans wrote: Roberto Nunnari wrote: Hi Jeromy! The Convention plugin looks very interesting! Does it work with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend.

Re: validation and action names with slashes

2008-06-20 Thread Jeromy Evans
Roberto Nunnari wrote: Jeromy Evans wrote: Roberto Nunnari wrote: Hi Jeromy! The Convention plugin looks very interesting! Does it work with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend. What about mixing it with tiles? Would it require specifying tiles results thus breaking the co

Re: validation and action names with slashes

2008-06-20 Thread Roberto Nunnari
Jeromy Evans wrote: Roberto Nunnari wrote: Hi Jeromy! The Convention plugin looks very interesting! Does it work with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend. What about mixing it with tiles? Would it require specifying tiles results thus breaking the convenience of conventions

Re: validation and action names with slashes

2008-06-20 Thread Jeromy Evans
Roberto Nunnari wrote: Hi Jeromy! The Convention plugin looks very interesting! Does it work with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend. What about mixing it with tiles? Would it require specifying tiles results thus breaking the convenience of conventions? It works with 2.1.

Re: validation and action names with slashes

2008-06-20 Thread Roberto Nunnari
Hi Jeromy! The Convention plugin looks very interesting! Does it work with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend. What about mixing it with tiles? Would it require specifying tiles results thus breaking the convenience of conventions? -- Robi Jeromy Evans wrote: Roberto Nu

Re: validation and action names with slashes

2008-06-20 Thread Jeromy Evans
Roberto Nunnari wrote: 2) action names with wildcards and '!' (ie '*!*') are not usable for declarative action-alias validation. No idea why. This works: class="package.ManageAccountAction"> matches the XML validation: ManageAccountAction-manageAccount!ChangePassword-validation.xml wher

Re: validation and action names with slashes

2008-06-20 Thread Roberto Nunnari
Hi guys. From my tests here's what I found: 1) action names with '/' are not usable for declarative action-alias validation because of java package name (and most probably filesystem ) incompatibilities 2) action names with wildcards and '!' (ie '*!*') are not usable for declarative action-

Re: validation and action names with slashes

2008-06-20 Thread Roberto Nunnari
Oops.. little typo! Correction below, in context. Maybe using a different separator in action name, like '!' instead of '/' could help.. But now this leads me to a more general question: Can action names containing '*' be mapped at all to Action-alias validation? Thank you! -- Robi Roberto N

Re: validation and action names with slashes

2008-06-19 Thread Roberto Nunnari
Anybody on this, please? -- Robi Roberto Nunnari wrote: Hello. I'd like to use declarative Action-alias field validation for several Actions/methods in my S2 webpapp. S2 let's me do in struts.xml elegant things like: ... .. my results.. ... and then use it in my jsps: ..bu

Re: @Validation annotation inheritance?

2008-05-12 Thread Musachy Barroso
Actually, Struts 2 checks the whole class hierarchy when an action is to be validated, so it will find the annotation on the parent class. musachy 2008/5/12 Musachy Barroso <[EMAIL PROTECTED]>: > That's the way we roll in Struts 2, it works even when it is not > supposed to :). Do you have any x

Re: @Validation annotation inheritance?

2008-05-12 Thread Musachy Barroso
That's the way we roll in Struts 2, it works even when it is not supposed to :). Do you have any xml validation set up as well? musachy On Mon, May 12, 2008 at 12:00 PM, Anna Skawińska <[EMAIL PROTECTED]> wrote: > Hi all, > > I'll start my posting here with a fairly basic Java issue - hope I won

Re: validation problem

2008-05-12 Thread Laurie Harper
Anet wrote: Hi everybody; I have some tables on my page. each of them contains some of properties. for the first time, tables are hidden and will be displayed by this javascript code: function toggle(id){ var id = id; var table = document.getElementById(id); if(table.style.display=="none"

Re: Validation on methods

2008-04-24 Thread Laurie Harper
The validate() method should be called for any request on that action unless (a) the request is serviced by an excluded method (where the set of excluded methods depends on the interceptor stack you are using and/or an explicit configuration you've specified) or (b) you have switched the 'allwa

Re: Validation on methods

2008-04-23 Thread Volker Karlmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Márcio*, *thanks for your quick answer. Yes, that will work, you're right. Unfortunately is is not exactly what i would want. You are doing your validation in the method that is called. I would prefer the framework to call *validate()* before (

Re: Validation on methods

2008-04-23 Thread Márcio Gurgel
Hi Volker, You can do it with struts xml validator: Include a xml into your action package like this: ActionName - alias from action - validation.xml Example: ActionName-save-validation.xml * Note that "save" is the name of action in your struts.xml Nothing better than a real example: struts

Re: Validation of Struts XML files

2008-04-17 Thread Laurie Harper
Looks like a simple versioning error to me; you're doctype declaration: > > "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" > "http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd";> But you said: > But, the struts-config_1_3.dtd is not in the struts

Re: Validation of Struts XML files

2008-04-16 Thread Adam Gordon
Well, the DTD files are identical, only the URLs are different so I don't expect the outcome to be any different And it turns out it's not. Changing the URL does not prevent Tomcat from going out and trying to retrieve the DTD even though I've added it to the JAR file. Any other ideas?

Re: Validation of Struts XML files

2008-04-16 Thread Dave Newton
Does it work if you use the DTD it says to use? http://struts.apache.org/dtds/struts-config_1_3.dtd";> Dave --- Adam Gordon <[EMAIL PROTECTED]> wrote: > Last night, our company had a maintenance window whereby Internet access > was shut off from our office to the outside world. During that ti

Re: Validation vetoing Action invocation

2008-04-15 Thread Musachy Barroso
No, the workflow interceptor will check for errors and return 'input' if there are any: http://svn.opensymphony.com/fisheye/browse/~raw,r=1630/xwork/trunk/src/java/com/opensymphony/xwork2/interceptor/DefaultWorkflowInterceptor.java In your case, why don't you remove the workflow interceptor? mus

Re: Validation for multiple fields

2008-04-14 Thread Wes Wannemacher
On Mon, 2008-04-14 at 16:51 -0300, Décio Heinzelmann Luckow wrote: > Hi All, > > Struts have some way to do the validation for multiple fields? > > Décio Yes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Validation result URL contains failed parameters

2008-04-11 Thread Guillaume Bilodeau
*sigh* I confused the s:form method attribute and used it to specify the method to call on the action, not the HTTP form submit method. Everything's working now. Definitely not my brightest moment. Thanks a bunch, GB Laurie Harper wrote: > > Guillaume Bilodeau wrote: >> Hi guys, >> >> I'm

Re: Validation result URL contains failed parameters

2008-04-11 Thread Laurie Harper
Guillaume Bilodeau wrote: Hi guys, I'm using Struts 2.0.11 for a standard web application and using annotations all the way. I have the following action, with some fields and getters / setters omitted for brevity: @ParentPackage("default") @Results( { @Result(name = "input", ty

Re: Validation

2008-03-31 Thread ravi_eze
asoma" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Saturday, March 29, 2008 6:12 PM > Subject: Re: Validation > > >> Hi, >> >> Simple theme doesn't support Validation and error reporting. you may have >> to use s

Re: Validation

2008-03-30 Thread Kibo
Hi I had the same problem. The simplest is use the qxhtml theme. See: http://www.vitarara.org/cms/struts_2_cookbook/creating_a_theme You can download the theme and use in Struts. You can combine it with theme simple. See the source jsp page with form. The second possibility is extend the simple

Re: Validation

2008-03-30 Thread Rodrigo Pereira
's). I was wondering if there is another option. Thanks, Rodrigo Pereira - Original Message - From: "Nuwan Chandrasoma" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Saturday, March 29, 2008 6:12 PM Subject: Re: Validation Hi, Simple theme doesn

Re: Validation

2008-03-29 Thread Nuwan Chandrasoma
Hi, Simple theme doesn't support Validation and error reporting. you may have to use some other theme like xhtml theme http://struts.apache.org/2.x/docs/xhtml-theme.html Thanks, Nuwan Rodrigo Pereira wrote: Hi, how can I position validation message on the screen? Also, when I have a simple

Re: validation with annotation

2008-03-13 Thread matt.payne
The current usage of Annotating methods seems broken. Its still applying all the validation rules to all methods despite methods having different validation requirements. The Struts "Zero Config/Annotation/Auto Config needs help" Hopefully, a http://jira.opensymphony.com/browse/XW-603 sprink

Re: validation with annotation

2008-03-12 Thread Ealden Escañan
On Wed, Mar 12, 2008 at 4:17 AM, xianwinwin <[EMAIL PROTECTED]> wrote: > > Thanks Ealden, this was very helpful! > > I tried that and it works fine. > > Question, say I wish to check for a date, so far I've been doing it this > way: > example > > private Date delta; > > > @TypeConver

Re: validation with annotation

2008-03-11 Thread xianwinwin
Thanks Ealden, this was very helpful! I tried that and it works fine. Question, say I wish to check for a date, so far I've been doing it this way: example private Date delta; @TypeConversion(converter="com.utilities.conversion.DateTypeConversion") public void setDelta(Date d

Re: validation with annotation

2008-03-10 Thread Ealden Escañan
On Tue, Mar 11, 2008 at 7:10 AM, xianwinwin <[EMAIL PROTECTED]> wrote: > > assuming registration is composed of fname, lname, ss, dob and except dob > all fields are mandatory. > > Question: how do I make sure those fields will be input? should I have > something like: > > @RequiredStringValidator(

Re: validation excludeMethods version 2.0.11

2008-03-06 Thread Dave Newton
--- akash agrawal <[EMAIL PROTECTED]> wrote: > Thanks for the response. > Could you give an example of how to use the approach you suggested? > Here is my code: > > > delete, getA, getB > > Oops, chalk another one up to my lack of sleep. I was confusing your question with a

Re: validation excludeMethods version 2.0.11

2008-03-06 Thread akash agrawal
Dave, Thanks for the response. Could you give an example of how to use the approach you suggested? Here is my code: delete, getA, getB Thanks, -Akash Dave Newton <[EMAIL PROTECTED]> wrote: --- akash agrawal wrote: > I am using validation framework and would like to disa

Re: validation excludeMethods version 2.0.11

2008-03-05 Thread Dave Newton
--- akash agrawal <[EMAIL PROTECTED]> wrote: > I am using validation framework and would like to disable validation for > all the query methods like getA(), getB(), getC(). > > There is a excludeMethods property using which I can turn off validation > for above methods by spelling out each method.

Re: validation for tag

2008-02-11 Thread Jeromy Evans
I'd look closer at your expression as it doesn't seem valid: If it's always returning true, that implies the expression inside the CDATA section is always false. First I'd put the ! operand inside the CDATA section and use string quotes as if you're comparing strings in java (not sure the la

Re: validation for tag

2008-02-11 Thread Raghuveer Rawat
Thanks Jeromy, Sorry, I did not provide enough detail. Only Header Key value is numeric '-1' so first option can be ruled out for me. For rest of the values Key is ISO Code e.g. USA and Value is Country Name e.g. 'United States' Below expression is not working for me. This condition is returni

Re: validation for tag

2008-02-10 Thread Jeromy Evans
If your keys are just numbers, perhaps you could use the Int Validator 0 http://struts.apache.org/2.x/docs/int-validator.html Otherwise I'd try some variations of the expression. It's operating on the getUser().getCountry() property of your action so the expression (user.country == '-1

Re: Validation question

2008-01-11 Thread Martin Braure de Calignon
Le vendredi 11 janvier 2008 à 15:46 -0800, Dave Newton a écrit : > The validation interceptor will look for, and call, validate${methodName} > (and validateDo${methodName}). > > d. Great ! thank you all :-) -- Martin Braure de Calignon signature.asc Description: Ceci est une partie de message

Re: Validation question

2008-01-11 Thread Dave Newton
The validation interceptor will look for, and call, validate${methodName} (and validateDo${methodName}). d. --- Martin Braure de Calignon <[EMAIL PROTECTED]> wrote: > > Le vendredi 11 janvier 2008 à 09:15 -0500, Ted Husted a écrit : > > On Jan 11, 2008 8:10 AM, Martin Braure de Calignon <[EMAIL

Re: Validation question

2008-01-11 Thread Martin Braure de Calignon
Le vendredi 11 janvier 2008 à 09:15 -0500, Ted Husted a écrit : > On Jan 11, 2008 8:10 AM, Martin Braure de Calignon <[EMAIL PROTECTED]> wrote: > > Of course yes :-). But I need a validate() per method. > > I haven't used it myself, but the syntax validate-action is suppose to > work, in the same

Re: Validation question

2008-01-11 Thread Ted Husted
On Jan 11, 2008 8:10 AM, Martin Braure de Calignon <[EMAIL PROTECTED]> wrote: > Of course yes :-). But I need a validate() per method. I haven't used it myself, but the syntax validate-action is suppose to work, in the same way that it works for the validation framework. HTH, Ted *

Re: Validation question

2008-01-11 Thread Martin Braure de Calignon
Le vendredi 11 janvier 2008 à 07:36 -0500, Ted Husted a écrit : > Rather than use the validation framework, I'd probably go with a > Validate method (by implementing Validatable). Firstly, thank you very much for your answer :) Ok then... That what I though... But my problem is that Validate() i

Re: Validation question

2008-01-11 Thread Ted Husted
Rather than use the validation framework, I'd probably go with a Validate method (by implementing Validatable). Then, instead of using an OGNL expression, you can loop through the list using Java, and call addFieldError if there's a problem. Alternatively, a custom type converter that turned the

Re: Validation Complications - Validating only those fields displayed in the form, and not the rest of the object in use

2008-01-09 Thread Singulariter
Great! I guess I'll be switching to XML validation or action specific validation. Thanks for the info :) George Laurie Harper wrote: > > Singulariter wrote: >> Hi all, >> >> Quick Struts 2 validation question: >> >> Is it possible to validate only the fields displayed in a form, when the >

Re: Validation Complications - Validating only those fields displayed in the form, and not the rest of the object in use

2008-01-09 Thread Laurie Harper
Singulariter wrote: Hi all, Quick Struts 2 validation question: Is it possible to validate only the fields displayed in a form, when the form's fields are part of a larger object that uses annotation validation? The problem is that I am using one object across many forms, each form contains so

Re: validation and CSS

2007-12-19 Thread [EMAIL PROTECTED]
Thanks so much, Alberto. Your guide is very helpful. On Dec 19, 2007 10:21 PM, Alberto A. Flores <[EMAIL PROTECTED]> wrote: > As the matter of fact, I found several ways in which you can modify the > outcome of the tag. > > The basic (and in my opinion, a hack) is to look at the generated HTML >

Re: validation and CSS

2007-12-19 Thread Alberto A. Flores
As the matter of fact, I found several ways in which you can modify the outcome of the tag. The basic (and in my opinion, a hack) is to look at the generated HTML code and then use your own CSS to modify the look and feel of your view. I'm currently using the "simple" theme and in all my "textf

Re: validation and CSS

2007-12-19 Thread [EMAIL PROTECTED]
Thanks Alberto. Which class contains style for ? I need to customize it so that no is around it and the text associated with it is in bold. e.g., If the value of the "some key" is Password, I want the "Password" is in bold. Any suggestion? Thanks again. On Dec 19, 2007 10:00 PM, Alberto A.

Re: validation and CSS

2007-12-19 Thread Alberto A. Flores
I believe the errors are within a "span" with class "errorField" (it may be something else). Custom CSS can make you look like whatever you want. [EMAIL PROTECTED] wrote: Thanks Dave. It seems the simple theme is used so the message is in black. I overrode the ..errorMessage style in JSP whic

Re: validation and CSS

2007-12-19 Thread [EMAIL PROTECTED]
Thanks Dave. It seems the simple theme is used so the message is in black. I overrode the ..errorMessage style in JSP which solved my problem but I'm not sure if it's a right way to do that. Thanks again. On Dec 19, 2007 8:09 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > Er, the default stylesh

Re: validation and CSS

2007-12-19 Thread Dave Newton
Er, the default stylesheet *does* make it show up in read. Are you using the tag? IIRC that is what includes the CSS file. d. --- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Is there a way to apply style sheet (CSS) to the message validator > generates? For example, how to make the "Color

Re: Validation "Mask": unicode characters

2007-12-11 Thread Paul Benedict
Let me know. I am really interested in I18N issues. I want to be able to do the same thing. On Dec 11, 2007 9:18 AM, Pierre Thibaudeau <[EMAIL PROTECTED]> wrote: > Thank you, Paul, for the clarification about the parsing of the regex (ORO > vs JDK 1.4); that's completely new to me! No luck so f

Re: Validation "Mask": unicode characters

2007-12-11 Thread Pierre Thibaudeau
Thank you, Paul, for the clarification about the parsing of the regex (ORO vs JDK 1.4); that's completely new to me! No luck so far in trying to checkout the latest build of Validator 1.4, but will try again later today. Failing that, I'll look into ORO's regex parser. 2007/12/10, Paul Benedict

Re: Validation Problem

2007-12-11 Thread Arpan Debroy
Which validators you used for the two fields, which are getting validated rightly? I am facing similar situation that whenever you use "required" validator, it'll not work. So for the string field you have to use "requiredstring" validator. For number, specially which have "long" data type, I am no

Re: Validation Problem

2007-12-10 Thread ginu george
This are the two Fields get validated Field which are not getting Validated Ginu On Tue, 2007-12-11 at 11:30 +0530, Arpan Debroy wrote: > Which are the two fields are getting validated and which are not.. > > On Dec 11, 2007 10:17 AM, <[EMAIL PROTECTED]> wrote: > > > iam using

Re: Validation Problem

2007-12-10 Thread ginu
Hi Jerome, I have created a new thread. I never did reply to any e-mail when composing this email. However I did reply to a reply I could have got. This problem could have been caused by both the threads having the same subject. It is unintentional. Ginu. > [EMAIL PROTECTED] wrote: >>

Re: Validation Problem

2007-12-10 Thread Arpan Debroy
Which are the two fields are getting validated and which are not.. On Dec 11, 2007 10:17 AM, <[EMAIL PROTECTED]> wrote: > iam using struts2 iam getting a validation Problem > All the fields get Validated while using the get method for a particular > action while using the post method (using 5 Fi

Re: Validation Problem

2007-12-10 Thread Jeromy Evans
[EMAIL PROTECTED] wrote: Hi all iam using struts2 iam getting a validation Problem All the fields get Validated while using the get method for a particular action while using the post method only two fields get validated Ginu

Re: Validation Problem

2007-12-10 Thread ginu
iam using struts2 iam getting a validation Problem All the fields get Validated while using the get method for a particular action while using the post method (using 5 Fields)only two fields get validated In jsp in validation.xml

Re: Validation "Mask": unicode characters

2007-12-10 Thread Paul Benedict
Pierre. I think that Validator 1.3 relies on Jakarta ORO for its regular expression parsing. You need to visit that project and see if it can do what you want. With that said, Validator 1.4 is based on JDK 1.4 and can use the native Java regex engine. Do any of these engines do what you need? Pa

Re: Validation Problem

2007-12-09 Thread Arpan Debroy
Please put some more inputs. On Dec 8, 2007 12:40 PM, <[EMAIL PROTECTED]> wrote: > > > Hi all > > iam using struts2 iam getting a validation Problem > All the fields get Validated while using the get method for a particular > action while using the post method only two fields get validated > > Gi

Re: Validation "Mask": unicode characters

2007-12-08 Thread Pierre Thibaudeau
Well, it seems my question got people stumped as much as I am! For an alternative solution, I would love advice on a (working) regex expression that would approximate the class of characters I am aiming at: say all the letters of the Latin1 set (ISO-8859-1). If we could eventually supplement that

Re: validation errors

2007-11-20 Thread Brian Relph
I realized that since this was a custom validator, I can add the error message to the fieldErrors with whatever key i choose - so i can now reference that error message. What about for other validators, like the expression validator, is there a way to specify a key for it? I think the expression

Re: Validation Best Practices?

2007-11-06 Thread Tom Schneider
That looks like an interesting project. There are a lot of things that I like about what they are doing. There are a lot of things that could be handle that way. My fear with making everything a seperate Rule class is that some things cannot be encoded as a simple rule. Somevalidation needs to

Re: Validation Best Practices?

2007-11-06 Thread Joachim Ansorg
Tom, I've read this thread with great interest. Currently I'm thinking about the validation problem as well. I looked at springmodule's Bean validation framework. (https://springmodules.dev.java.net/docs/reference/0.8/html/validation.html#beanValidator). Looks quite interesting to me. Does som

Re: Validation Best Practices?

2007-10-29 Thread Tom Schneider
Just wanted to point out: http://jcp.org/en/jsr/detail?id=303 which is relevant to our discussion. No activity on this JSR since July of '06. I'm not convinced that annotations really solve the problem. I think for anything more than simple type checking you need a true programming language to

Re: Validation Best Practices?

2007-10-29 Thread Tom Schneider
I think drools would be way overkill for simple validation. Not only would there be a high learning curve, I don't think it would handle the most involved cases. I really think we need to do Java by default. The reason I included a way to autofind the validation class is to mimic how the existi

Re: Validation Best Practices?

2007-10-29 Thread Gary Affonso
Tom Schneider wrote: This is essentially what we're doing as well, but it is far from an ideal situation. The issue I've seen is that you can't easily use the validators from the xml in the validate() method. Another disadvantage is that validation is in 2 different places. Also, some of our v

Re: Validation Best Practices?

2007-10-28 Thread Tom Schneider
This is essentially what we're doing as well, but it is far from an ideal situation. The issue I've seen is that you can't easily use the validators from the xml in the validate() method. Another disadvantage is that validation is in 2 different places. Also, some of our validate() methods get

Re: Validation Best Practices?

2007-10-26 Thread Igor Vlasov
I use validate() method from ActionSupport for complex bussines validation.(it works in WorkFlowInterceptor). Sometime, for trivial fields, i can use Struts ValidationFramework.(it works after ParameterInterceptor) Sean Kleinjung-2 wrote: > > Hey, > > I have a question concerning where val

Re: Validation of Ajax Tags

2007-10-24 Thread chengas123
Yes, I did add the tag. When I submit the form I get a message from the tag saying the site field is required and am returned to the same page with all the input fields completely blank. Shouldn't they contain the input I entered when filling out the form? The same validation failure occurs r

Re: Validation of Ajax Tags

2007-10-23 Thread Musachy Barroso
That should work and you will get a validation error, the only problem is that it won't show up on the xhtml theme, so you will have to use musachy On 10/23/07, chengas123 <[EMAIL PROTECTED]> wrote: > > Does anyone have any ideas on how the dojo ajax tags can be validated > (autocompleter, datet

RE: Validation errors in Action

2007-10-12 Thread Dean Pullen
Just stumbled on that as you replied. Thanks again. (But not for the pun ;) ) -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 12 October 2007 16:27 To: Struts Users Mailing List Subject: RE: Validation errors in Action --- Dean Pullen <[EMAIL PROTECTED]> wrote

RE: Validation errors in Action

2007-10-12 Thread Dave Newton
--- Dean Pullen <[EMAIL PROTECTED]> wrote: > Is there any documentation anywhere, where I can see > how to correctly return errors in the validate > method? This is a WW article but should still be valid. Ha ha, valid, get it? http://today.java.net/pub/a/today/2006/01/19/webwork-validation.html

RE: Validation errors in Action

2007-10-12 Thread Dean Pullen
Is there any documentation anywhere, where I can see how to correctly return errors in the validate method? Cheers. -Original Message- From: Julien Leonard [mailto:[EMAIL PROTECTED] Sent: 12 October 2007 16:17 To: 'Struts Users Mailing List' Subject: RE: Validation errors

RE: Validation errors in Action

2007-10-12 Thread Julien Leonard
Hello, Why don't you use the validate() method ? Julien -Message d'origine- De : Dean Pullen [mailto:[EMAIL PROTECTED] Envoyé : vendredi 12 octobre 2007 17:13 À : Struts Users Mailing List Objet : Validation errors in Action Hi all, How do you get hold of the validation errors in an A

RE: Validation not validating

2007-10-11 Thread Mitch Claborn
- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, October 11, 2007 1:48 PM To: Struts Users Mailing List Subject: RE: Validation not validating --- Mitch Claborn <[EMAIL PROTECTED]> wrote: > Oops. > > Question-validation.xml > public class ActionQuestion extends A

RE: Validation not validating

2007-10-11 Thread Dave Newton
--- Mitch Claborn <[EMAIL PROTECTED]> wrote: > Oops. > > Question-validation.xml > public class ActionQuestion extends ActionSupport { If you're gunning for validation based on the action class name then this should be ActionQuestion-validation.xml. d. -

RE: Validation not validating

2007-10-11 Thread Mitch Claborn
p.put("x4", "Answer x4"); l_map.put("x5", "Answer x5"); setMap(l_map); System.out.println(this.getClass().getName() + ".execute() end"); return SUCCESS; } There is no validate() in my action.

Re: Validation not validating

2007-10-11 Thread Dave Newton
--- Mitch Claborn <[EMAIL PROTECTED]> wrote: > Seems like the validation is not firing. > What am I missing? Without any validation files and / or action files it's kind of hard to say. If you post your validation file (the tutorial uses an XML config) that might be enough; posting your Action fi

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