Re: Problem with Validation "lifecycle"

2010-11-19 Thread Greg Akins
On Fri, Nov 19, 2010 at 11:43 AM, Greg Lindholm wrote: > I wrote this to solve the problem of preserving messages across a redirect: > > http://glindholm.wordpress.com/2008/07/02/preserving-messages-across-a-redirect-in-struts-2/ > Thanks Greg. That looks like exactly what I was looking for. On

Re: Problem with Validation "lifecycle"

2010-11-19 Thread Greg Lindholm
I wrote this to solve the problem of preserving messages across a redirect: http://glindholm.wordpress.com/2008/07/02/preserving-messages-across-a-redirect-in-struts-2/ On Fri, Nov 19, 2010 at 11:36 AM, Greg Akins wrote: > Thanks for the response > > On Fri, Nov 19, 2010 at 11:28 AM, Maurizio C

Re: Problem with Validation "lifecycle"

2010-11-19 Thread Greg Akins
Thanks for the response On Fri, Nov 19, 2010 at 11:28 AM, Maurizio Cucchiara wrote: > As far I can remember actionError are stored in struts stack, so I guess > they are per-request. That's what I thought. > Also, redirect action create a new request, so you can share AE in a > standard flow.

Re: Problem with Validation "lifecycle"

2010-11-19 Thread Maurizio Cucchiara
As far I can remember actionError are stored in struts stack, so I guess they are per-request. Also, redirect action create a new request, so you can share AE in a standard flow. Can't you do without redirect for the input result? 2010/11/19 Greg Akins > I've written an action, with validation,

Problem with Validation "lifecycle"

2010-11-19 Thread Greg Akins
I've written an action, with validation, that uses a redirectAction instead of a .jsp for the INPUT result. When the final INPUT jsp is displayed, the actionErrors aren't present. I believe this is because the action I'm redirecting to "clears" the actions before the jsp is displayed. If I save

Problem with validation

2009-08-19 Thread Dimitris Mouchritsas
Hi all, in my project we're using Struts 1.3.8. I have a case of editing an organisation. Because we have two types of organisations, I'm using a BaseOrganisationForm (extends ValidatorForm) as a form bean where I've put the validation as xdoclet tags. Then I inherit this class from OrganisationFo

Problem with validation

2009-08-19 Thread Dimitris Mouchritsas
Hi all, in my project we're using Struts 1.3.8. I have a case of editing an organisation. Because we have two types of organisations, I'm using a BaseOrganisationForm (extends ValidatorForm) as a form bean where I've put the validation as xdoclet tags. Then I inherit this class from OrganisationFo

Problem with validation

2009-08-19 Thread Dimitris Mouchritsas
Hi all, in my project we're using Struts 1.3.8. I have a case of editing an organisation. Because we have two types of organisations, I'm using a BaseOrganisationForm (extends ValidatorForm) as a form bean where I've put the validation as xdoclet tags. Then I inherit this class from Organisati

RE: Can't obtain object in POJO using AJAX and problem with validation

2008-08-02 Thread Francisco Exposito Aguilera
: user@struts.apache.org > Subject: Re: Can't obtain object in POJO using AJAX and problem with > validation > > Hi Francisco, > > Issue number 2 takes precedence over Issue number 1 as if there's no > user info available, then validation fails, errors appear

Re: Can't obtain object in POJO using AJAX and problem with validation

2008-08-02 Thread Jeromy Evans
Hi Francisco, Issue number 2 takes precedence over Issue number 1 as if there's no user info available, then validation fails, errors appear on every field and the fields are empty. Which implies the properties are not being set on your action (you can verify that). Which implies Dojo is no

Can't obtain object in POJO using AJAX and problem with validation

2008-08-02 Thread Francisco Exposito Aguilera
Hi, I define in my menu.jsp page two . On the left the menu which always appears. On the right, the part which is updated after every action. Then I have another jsp with a form, the xml validation file and the POJO. The action definition is: /src/jsp/crear/usuarioCrear.jsp

Re: Problem with Validation framework

2008-04-24 Thread Lukasz Lenart
> class="com.intuit.sbfw.action.mc.UserLookupAction"> UserLookupAction-validation.xml is in the same path as class above? > 2) I see this message when I invoke my very first action: INFO > [ActionValidatorManagerFactory] Detected AnnotationActionValidatorManager, > initializing it... > Does t

RE: Problem with Validation framework

2008-04-24 Thread Sanjeewa Saman
HI I hope that this will help you http://struts2issues.blogspot.com/ BR, sanj -Original Message- From: Pranav [mailto:[EMAIL PROTECTED] Sent: Thursday, April 24, 2008 6:32 AM To: user@struts.apache.org Subject: Problem with Validation framework Hi All, I am having a problem with

Problem with Validation framework

2008-04-23 Thread Pranav
Hi All, I am having a problem with validation framework. This is the first time I am trying to use struts2 validation. Here's different code pieces that I have. UserLookupAction-validation.xml You must enter a value for Memb

RE: Problem with validation rule

2006-07-17 Thread Adam Gordon
Heh, it happens to the best of us. Happy coding. -Adam -Original Message- From: Sebastian Stein [mailto:[EMAIL PROTECTED] Sent: Sunday, 16 July 2006 10:20 To: Struts Users Mailing List Subject: Re: Problem with validation rule Sebastian Stein <[EMAIL PROTECTED]> [060716 11:50]:

Re: Problem with validation rule

2006-07-16 Thread Sebastian Stein
Sebastian Stein <[EMAIL PROTECTED]> [060716 11:50]: > Adam Gordon <[EMAIL PROTECTED]> [060715 09:50]: > > What happens if you remove the "requireList" dependency and just use "mask?" > > It is driving me crazy. I removed the requireList dependency and nothing > changed. I removed the complete vali

Re: Problem with validation rule

2006-07-16 Thread Sebastian Stein
Adam Gordon <[EMAIL PROTECTED]> [060715 09:50]: > What happens if you remove the "requireList" dependency and just use "mask?" It is driving me crazy. I removed the requireList dependency and nothing changed. I removed the complete validation for menuForm from validation.xml and nothing changed. I

Re: Problem with validation rule

2006-07-14 Thread Adam Gordon
Sebastian- What happens if you remove the "requireList" dependency and just use "mask?" -Adam Sebastian Stein wrote: Hi, I have a form, which should also use validation based on a mask. I already enabled this kind of validation in another form and there it works. So I guess I just have a type

Problem with validation rule

2006-07-14 Thread Sebastian Stein
Hi, I have a form, which should also use validation based on a mask. I already enabled this kind of validation in another form and there it works. So I guess I just have a type or did something wrong during copy&paste. Here is the form definition in the struts-config.xml:

Re: Problem with Validation of Struts DynaValidatorForm

2005-09-11 Thread Weng Kong Lee
Hi Laurie, Thanks for the suggestion! After digging into the Tomcat console logs, I've finally found out what the problem is. Seems like my copy of validation-rules.xml was corrupted. The arguments for the validateRequired method were wrong. Corrected that and now it works fine :-) Thanks for th

Re: Problem with Validation of Struts DynaValidatorForm

2005-09-11 Thread Laurie Harper
You probably need your form to be declared as type org.apache.struts.action.DynaActionForm (rather than DynaValidatorForm). The difference between their behaviour is a little subtle so it's easy to get them mixed up. Try changing it and see if it works. L. Weng Kong Lee wrote: Hi all, I've j

Problem with Validation of Struts DynaValidatorForm

2005-09-10 Thread Weng Kong Lee
Hi all, I've just started exploring the use of Struts DynaValidatorForms. I've tried to set-up a very simple login form with a username and password fields, where both are required. Here's the relevant details: 1. struts-config.xml The application message resource bundle has been configured with t

RE: Problem with validation (?)

2004-12-10 Thread Jim Barrows
> -Original Message- > From: aris [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 09, 2004 11:23 AM > To: Struts Users Mailing List > Subject: Re: Problem with validation (?) > > > From: "Wendy Smoak" <[EMAIL PROTECTED]> > > > F

Re: Problem with validation (?)

2004-12-10 Thread aris
From: "Derek Broughton" <[EMAIL PROTECTED]> > On Thursday 09 December 2004 14:28, Wendy Smoak wrote: > > From: "aris" <[EMAIL PROTECTED]> > > > > > > Use String (and occasionally Boolean) for form fields and things will > > > > work > > > > > > the way you need them to. > > > > > > I don't underst

Re: Problem with validation (?)

2004-12-10 Thread aris
From: "Wendy Smoak" <[EMAIL PROTECTED]> > From: "aris" <[EMAIL PROTECTED]> > > > > Use String (and occasionally Boolean) for form fields and things will > work > > > the way you need them to. > > > > I don't understand your answer... If I need an Integer field for my > > ActionForm derived class w

Re: Problem with validation (?)

2004-12-09 Thread Derek Broughton
On Thursday 09 December 2004 19:09, Laconia Data Systems wrote: > Derek- > Any conversions (String to Integer or whatever) need to happen in your > Business Bean layer Not me... I just replied to a reply. :-) -- derek - To unsub

Re: Problem with validation (?)

2004-12-09 Thread Derek Broughton
On Thursday 09 December 2004 18:02, Wendy Smoak wrote: > From: "Derek Broughton" <[EMAIL PROTECTED]> > > > > What happens when somebody types "ABCDE" into your Integer field on the > > > form, and it fails validation? Can you re-display the incorrect user > > input > > > > so they can see what the

Re: Problem with validation (?)

2004-12-09 Thread Laconia Data Systems
that about teaching a man to fish? Hope this helps, Martin= - Original Message - From: "Wendy Smoak" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, December 09, 2004 5:02 PM Subject: Re: Problem with validati

Re: Problem with validation (?)

2004-12-09 Thread Matt Bathje
Wendy Smoak wrote: From: "Matt Bathje" <[EMAIL PROTECTED]> What do you mean by "must be there for a reason"? As far as I know, a form property can be any class type that you want it to be. Sorry, I think only in terms of dynamic forms, and there is a list of allowed field types: http://struts.apac

Re: Problem with validation (?)

2004-12-09 Thread Wendy Smoak
From: "Matt Bathje" <[EMAIL PROTECTED]> > What do you mean by "must be there for a reason"? As far as I know, a > form property can be any class type that you want it to be. Sorry, I think only in terms of dynamic forms, and there is a list of allowed field types: http://struts.apache.org/userGui

Re: Problem with validation (?)

2004-12-09 Thread Matt Bathje
Wendy Smoak wrote: From: "Derek Broughton" <[EMAIL PROTECTED]> What happens when somebody types "ABCDE" into your Integer field on the form, and it fails validation? Can you re-display the incorrect user input so they can see what they typed and why it was wrong? Or more concisely, because HTML on

Re: Problem with validation (?)

2004-12-09 Thread Hubert Rabago
One situation I might consider this acceptable is when it's for a field that uses a drop down as the control, and I'm sure that my users won't try to be smart with me by submitting the form using their own hand made HTML. In this case, I don't have to worry about the typos/invalid values. In my ac

Re: Problem with validation (?)

2004-12-09 Thread Wendy Smoak
From: "Derek Broughton" <[EMAIL PROTECTED]> > > What happens when somebody types "ABCDE" into your Integer field on the > > form, and it fails validation? Can you re-display the incorrect user input > > so they can see what they typed and why it was wrong? > > Or more concisely, because HTML only

Re: Problem with validation (?)

2004-12-09 Thread Derek Broughton
On Thursday 09 December 2004 14:28, Wendy Smoak wrote: > From: "aris" <[EMAIL PROTECTED]> > > > > Use String (and occasionally Boolean) for form fields and things will > > work > > > > the way you need them to. > > > > I don't understand your answer... If I need an Integer field for my > > ActionFo

Re: Problem with validation (?)

2004-12-09 Thread Wendy Smoak
From: "aris" <[EMAIL PROTECTED]> > > Use String (and occasionally Boolean) for form fields and things will work > > the way you need them to. > > I don't understand your answer... If I need an Integer field for my > ActionForm derived class why I've to use a String? What happens when somebody typ

Re: Problem with validation (?)

2004-12-09 Thread aris
From: "Wendy Smoak" <[EMAIL PROTECTED]> > From: "aris" <[EMAIL PROTECTED]> > > When I submit the form, after the validation process I have value="0" (the > > field is an Integer) but I haven't set validation rules on this field :| > > Use String (and occasionally Boolean) for form fields and thing

Re: Problem with validation (?)

2004-12-09 Thread aris
ay, December 09, 2004 6:48 PM Subject: Problem with validation (?) > Hi all, > > I've a strange behaviour with my application and I suppose the reason is the > ValidatorPlugIn. > > I've an html form with an hidden field and the pre-population lets its > valu

Re: Problem with validation (?)

2004-12-09 Thread Wendy Smoak
From: "aris" <[EMAIL PROTECTED]> > When I submit the form, after the validation process I have value="0" (the > field is an Integer) but I haven't set validation rules on this field :| Use String (and occasionally Boolean) for form fields and things will work the way you need them to. > In my opi

Problem with validation (?)

2004-12-09 Thread aris
Hi all, I've a strange behaviour with my application and I suppose the reason is the ValidatorPlugIn. I've an html form with an hidden field and the pre-population lets its value="" (this is right because the value of the field in the associated ValidatorForm is null). When I submit the form, aft

RE: Problem with validation using both minlength and maxlength on the same field

2004-12-02 Thread David G. Friedman
Bill, I like how you think! Hats off to you for that good idea. Regards, David -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow Sent: Thursday, December 02, 2004 10:21 AM To: [EMAIL PROTECTED] Subject: Re: Problem with validation using both minlength and

Re: Problem with validation using both minlength and maxlength on the same field

2004-12-02 Thread Niall Pemberton
alidations" it does say that these are required. Niall - Original Message - From: "David G. Friedman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, December 02, 2004 2:12 PM Subject: RE: Problem with validation

Re: Problem with validation using both minlength and maxlength on the same field

2004-12-02 Thread Bill Siggelkow
--- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 4:24 AM To: Struts Users Mailing List Subject: Re: Problem with validation using both minlength and maxlength on the same field David, Its not a bug, its not designed to work that way. For the minlength validator you ha

RE: Problem with validation using both minlength and maxlength on the same field

2004-12-02 Thread David G. Friedman
PROTECTED] Sent: Thursday, December 02, 2004 4:24 AM To: Struts Users Mailing List Subject: Re: Problem with validation using both minlength and maxlength on the same field David, Its not a bug, its not designed to work that way. For the minlength validator you have to specify a minlength otherwise

Re: Problem with validation using both minlength and maxlength on the same field

2004-12-02 Thread Niall Pemberton
vid G. Friedman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, December 02, 2004 6:09 AM Subject: RE: Problem with validation using both minlength and maxlength on the same field > Niall, > > Derek isn't crazy

RE: Problem with validation using both minlength and maxlength on the same field

2004-12-01 Thread David G. Friedman
g from a zero array index position) b) Initialization for each object is in one place. Since the JavaScript appears to look for an object matching the first name of the Array anyway, wouldn't this be cleaner and less redundant? S

Re: Problem with validation using both minlength and maxlength on the same field

2004-12-01 Thread Niall Pemberton
; <[EMAIL PROTECTED]> Sent: Thursday, December 02, 2004 12:46 AM Subject: RE: Problem with validation using both minlength and maxlength on the same field > Derek, > > I'm seeing the same thing you described. I'm sorry I didn't believe you. > Sadly, I'm having

RE: Problem with validation using both minlength and maxlength on the same field

2004-12-01 Thread David G. Friedman
04 1:18 PM To: Struts Users Mailing List Subject: Re: Problem with validation using both minlength and maxlength on the same field On Wednesday 01 December 2004 13:49, [EMAIL PROTECTED] wrote: > I'm trying to validate a simple field. I want to validate that the field > is an integer,

Re: Problem with validation using both minlength and maxlength on the same field

2004-12-01 Thread Derek Broughton
e omitted a "not"), anyway... > -Original Message- > From: Derek Broughton [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 01, 2004 1:18 PM > To: Struts Users Mailing List > Subject: Re: Problem with validation using both minlength and maxlength > on the same

RE: Problem with validation using both minlength and maxlength on the same field

2004-12-01 Thread David G. Friedman
--Original Message- From: Derek Broughton [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 1:18 PM To: Struts Users Mailing List Subject: Re: Problem with validation using both minlength and maxlength on the same field On Wednesday 01 December 2004 13:49, [EMAIL PROTECTED] wr

Re: Problem with validation using both minlength and maxlength on the same field

2004-12-01 Thread Derek Broughton
On Wednesday 01 December 2004 13:49, [EMAIL PROTECTED] wrote: > I'm trying to validate a simple field. I want to validate that the field > is an integer, and meets the min and max length requirements. In the same > application I am able to correctly validate a date field so I'm confident > my ove

RE: Problem with validation using both minlength and maxlength on the same field

2004-12-01 Thread Ram Venkataswamy
: [EMAIL PROTECTED] Subject: Problem with validation using both minlength and maxlength on the same field I'm trying to validate a simple field. I want to validate that the field is an integer, and meets the min and max length requirements. In the same application I am able to correctly val

RE: Problem with validation using both minlength and maxlength on the same field

2004-12-01 Thread Jim Barrows
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 01, 2004 10:49 AM > To: [EMAIL PROTECTED] > Subject: Problem with validation using both minlength and maxlength on > the same field >

Problem with validation using both minlength and maxlength on the same field

2004-12-01 Thread jesnook
I'm trying to validate a simple field. I want to validate that the field is an integer, and meets the min and max length requirements. In the same application I am able to correctly validate a date field so I'm confident my overall struts setup is correct. However when I try to do both a min