: 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
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:
[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
, 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
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,
;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
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
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
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
9 matches
Mail list logo