RE: how do i get a Field object in Validator?

2002-10-23 Thread Jerry Jalenak
: RE: how do i get a Field object in Validator? Essentially, yes. Lets say I have 2 fields A B. I am validating A but it requires B. If B fails, I'd like to get the arg0 value from B's Field object and use that in the error message (since there's a key to the display name in that arg

how do i get a Field object in Validator?

2002-10-22 Thread Andy Kriger
I am writing a custom rule and I need to know how I can get a handle to a different Field object? (not the one passed into the method in the first place) thx a -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail:

RE: how do i get a Field object in Validator?

2002-10-22 Thread Jerry Jalenak
[mailto:akriger;greaterthanone.com] Sent: Tuesday, October 22, 2002 11:33 AM To: Struts Users Mailing List Subject: how do i get a Field object in Validator? I am writing a custom rule and I need to know how I can get a handle to a different Field object? (not the one passed into the method

RE: how do i get a Field object in Validator?

2002-10-22 Thread Andy Kriger
, 2002 14:19 To: 'Struts Users Mailing List' Subject: RE: how do i get a Field object in Validator? In your validator-rules.xml file, add the following for each form field you need access to: form name=yourForm field property=firstProperty depends=yourCustomRoutine

Re: how do i get a Field object in Validator?

2002-10-22 Thread Dave Derry
Heres a method that I use to validate that one date entered by the user is earlier than another. public static boolean validateDateBefore( Object bean, ValidatorAction va, Field field, ActionErrors errors,

RE: how do i get a Field object in Validator?

2002-10-22 Thread Jerry Jalenak
;greaterthanone.com] Sent: Tuesday, October 22, 2002 1:45 PM To: Struts Users Mailing List Subject: RE: how do i get a Field object in Validator? That much I understand - but is it possible to get a reference to the Field objec that represents that 2nd property? For example, if you wanted to get

RE: how do i get a Field object in Validator?

2002-10-22 Thread Andy Kriger
To: Struts Users Mailing List Subject: Re: how do i get a Field object in Validator? Heres a method that I use to validate that one date entered by the user is earlier than another. public static boolean validateDateBefore( Object bean, ValidatorAction va

RE: how do i get a Field object in Validator?

2002-10-22 Thread Andy Kriger
var but like I said earlier, it's ugly. -Original Message- From: Jerry Jalenak [mailto:Jerry.Jalenak;LABONE.com] Sent: Tuesday, October 22, 2002 15:29 To: 'Struts Users Mailing List' Subject: RE: how do i get a Field object in Validator? Not quite sure I understand your question

RE: how do i get a Field object in Validator?

2002-10-22 Thread Padma Ginnaram
associated to other form fields as min/max values. -Padma -Original Message- From: Andy Kriger [mailto:akriger;greaterthanone.com] Sent: Tuesday, October 22, 2002 2:45 PM To: Struts Users Mailing List Subject: RE: how do i get a Field object in Validator? That much I understand