Hi,
I have three radio buttons in a form,
---
o Today
o Tomorrow
o From this date: [ ]
---
I am currently using requiredIf and date validation on the date textarea . The date
entry is only required if the correct radio button is selected and the date validation
makes sure
Hi,
we try to concat more than two conditions with requiredIf.
Something like (selectionOne==1 || selectionOne==2) value ==2
The problem is that it is not clear how the validator evaluates the
expression.
Does anyone having experiences with that.
TIA,
Markus
I use Struts 1.1 and tried to add the patch for the requiredif validator in
validator-rules.xml.
Following is the code that I added in the validation.xml for the form. The form has 2
fields and only one of them can be filled inorder to perform a search.
field property=acctID depends
property=username depends=requiredif
arg0 key=errors.usernameorpassword/
var
var-namefield[0]/var-name
var-valuecurrentPage/var-value
/var
var
Hi Udaya,
Thanks for the corrections.
I have just found out that I am missing the public static boolean validateRequiredIf(
)
in the struts-validator.java class which should contain the java functionality to take
care of requiredif validator. So it seems like this patch needs to be added
is requiredif the other field is
null doesn't work at all.
Basically, I've decided that this is *not* a job for the validator
framework because it's too complex for a requiredif (which I think is
kinda sad actually. This shouldn't be that tough), but I'm still curious
why the simple case fails.
My next
Can anyone tell me what's going on in here.. i want the product field has to
have some value other then Please select one. and it should be required
field.
Thanks,
Newt
field property=product depends=requiredif
arg0 key=firstForm.product.displayname/
var var-namefield[0]/var-name
Hi All,
I get the following error when I submit my form using the requiredif:
25 Oct 2003
12:03:13,311 - ERROR org.apache.commons.validator.Validator
- reflection: null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method
Try
var-namefieldTest[0]/var-name
-Original Message-
From: Greg Hess [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 25, 2003 12:21 PM
To: Struts
Subject: Requiredif error?
Hi All,
I get the following error when I submit my form using the requiredif:
25 Oct 2003 12:03:13,311
- Original Message -
From: Marc Dugger [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
The new validwhen validation rule, which will be included into the Struts
release immediately after the 1.1 release...
I am using the nightly build to develop my app and am
http://cvs.apache.org/builds/jakarta-struts/nightly/
Ruben Orta Magan wrote:
- Original Message -
From: Marc Dugger [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
The new validwhen validation rule, which will be included into the Struts
release immediately after the
Since no one offered an example for requiredIf:
In this case either x_Company OR x_First_Name and x_Last_Name are required,
so x_First_Name AND x_Last_Name are requiredIf x_Company is NULL, and
company is required if either first name OR last name is null.
field
property=x_First_Name
Hello.
I've got a problem with the requiredif condition in the struts validator.
I'm using this dtd:
http://jakarta.apache.org/commons/dtds/validator_1_0.dtd
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd
The validation rule is:
formset
form name=icytReviForm
Has anyone used this in the validation.xml?
If so could I see a simple example?
If not what are you using validwhen?
thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
My understanding is that 'requiredif' will be deprecated and the use of
'validwhen' is encouraged.
Example:
field property=emailAddress depends=validwhen
arg0 key=userinfo.emailAddress.label/
var
var-nametest/var-name
var-value((sendNewsletter == null
validwhen isn't available in struts 1.1 is it?
have you used this or tested it?
- Original Message -
From: Marc Dugger [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, October 27, 2003 5:32 PM
Subject: RE: requiredif
My understanding
into any problems, but you may search the archives
to view other opinions.
-Original Message-
From: Rhet Behler [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 7:17 PM
To: Struts Users Mailing List
Subject: Re: requiredif
validwhen isn't available in struts 1.1 is it?
have
Hi,
I am using the validator 1.02 that came with Struts 1.1.
How do I get the 'requiredif' validator to work? Or is it not included?
Thanks,
Erez
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
Oops, sorry, what I wanted to know is about 'requiredWhen'.
Erez
-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 11:12 AM
To: 'Struts Users Mailing List'
Subject: requiredif validator
Hi,
I am using the validator 1.02 that came
On 10/15/2003 01:47 PM Erez Efrati wrote:
Oops, sorry, what I wanted to know is about 'requiredWhen'.
Erez
-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 11:12 AM
To: 'Struts Users Mailing List'
Subject: requiredif validator
Hi,
I am
I have the following requiredIf that does not seem to actually work:
field property=phone1
depends=required,minlength,maxlength
arg0 key=form.phone1/
arg1 name=maxlength key=${var:maxlength}
resource=false/
var
Hello Dera All,
I am resending this request as I could not ascertain whether it is delivered to user
group or not
-Udaya
Dear All,
Validation requiredif worked fine in my project
when using Struts 1.1 RC1
I upgraded or using now struts 1.1.
suddenly the requiredif validation is not working.
So
Hello Dear All,
Please help me to find fault in hte following code
for requiredif validation and identical(password) comparision
that worked fine in Struts 1.1 RC1 but giving
java.lang.NullPointerException with Struts 1.1 final release
The format of the variable names changed before Struts 1.1 final.
In your validator, try replacing your var-names field-test[0] and
field-value[0] with fieldTest[0] and fieldTest[0], respectively.
You can see this format in the example at
.
Thank you very much
-Udaya Allu
-Original Message-
From: Greg Ludington [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 17, 2003 11:25 AM
To: Udaya Allu; [EMAIL PROTECTED]
Subject: RE: Problem in validation requiredif in struts 1.1 that worked
fine in Struts 1.1 RC1
The format
Hi all,
I hava question about the use of required in the validation.xml file.My example is :
field property=conPassword depends=requiredif
arg0 key=prompt.confirm.password/
var
var-nametest/var-name
var-value((newPassword != null)/var-value
/var
, 2003 7:11 PM
Subject: RE: how to use requiredif
field property=phone depends=requiredif
arg0 key=venue.phone /
var
var-namefield[0]/var-name
var-valuevenueId/var-value
/var
var
var-namefield-test[0]/var-name
var-valueEQUAL/var-value
/var
var
var-namefield-value[0]/var-name
var
I am trying to do a change password action. It has three fields, original password,
new password and confirm new password. I want to check the confirm new password if the
new password is not null.So i
want to use the requiredif.
thank you for you answer.
- Original Message -
From
field property=phone depends=requiredif
arg0 key=venue.phone /
var
var-namefield[0]/var-name
var-valuevenueId/var-value
]
Subject: Re: how to use requiredif
thank you. i understand it. can you tell me where can i find all the validator
document? i have searched the struts 1.1 document, but find a little.
- Original Message -
From: Alex Shneyderman [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL
It looks like you're just trying to make sue that the password field is
filled in right? If so, all you need to use is the 'required' validation.
Just replace requiredif with required, and get rid of the var section. This
will make sure a password was entered.
Is this what you want to do
Hi,
I'm trying to use the requiredif validation on fields in a nested
collection and am not having any luck.
Here's the excerpt from the validation.xml
...
form name=/submitFamily_2004
field
property=campus indexedListProperty=alumni
depends=requiredif
I am looking for requiredif validator documentation. Does anyone have
any pointers to it, preferebaly with examples?
Thanks,
Alex.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Requiredif doesn't provide the *this* constant, alas.
Validwhen will, and should be available in 1.1.1/1.2 (whatever we call
the next release), except that I may do another rewrite before release
it, since there's been a lot of suggestions to me to base it on the
Commons EL parser rather than
The new validwhen will provide a *this*
So that you can easily test if 2 fields are equal.
Is this available using requiredif?
I saw Raible's article regarding this but it requires creating a custom
validator.
I'm not opposed to doing this but I don't want to introduce new items for
maintenance
Hi all,
The validator package works well for me.
But I'm trying to use the requiredif and failing.
I know there has been previous discussion of this,
but I'm trying to a simple validation based on a checkbox
so perhaps someone could tell me where I'm going wrong.
For example,
I want
The following worked for me. Note that in RC1, the var-name tag values
are expected to be field-test[n], not fieldTest[n] and so on
The requiredif check was removed because in 1.1RC1, requiredif would break
a javascript validator such as mask. I used custom validation instead.
field property
being checked would I do something like the following?
field property=prop1 depends=mask
msg name=requiredif key=app224Form.aForm.prop1.req/
msg name=mask key=app224Form.aForm.prop1.mask/
var
var-namemask/var-name
var-value
fields on the same form are being validating correctly. No observable
errors from the tomcat's stdout.
(I am using struts-1.1-rc2)
On another note, is it possible to patch 1.1-rc2 with the validwhen
valdator?
TIA,
w.
field property=contact.phoneBHPrefix depends=requiredif,mask,minlength
I have the following code that does not seem to operate at all.
I want phone1type to be a required field _if_ the phone1 attribute is _not_
field property=phone1type
depends=requiredif
arg0 key=form.phone1type/
var
--- Mick Knutson [EMAIL PROTECTED] wrote:
I have the following code that does not seem to operate at all.
I want phone1type to be a required field _if_ the phone1 attribute is
_not_
field property=phone1type
depends=requiredif
arg0 key
PROTECTED] wrote:
I have the following code that does not seem to operate at all.
I want phone1type to be a required field _if_ the phone1 attribute is
_not_
field property=phone1type
depends=requiredif
arg0 key=form.phone1type
PROTECTED]
Subject: Re: requiredif question
Date: Wed, 25 Jun 2003 10:20:35 -0700 (PDT)
Just a hunch:
For Struts 1.1RC1 , the varnames should be:
field-test[x]
field-join
etc...
In 1.1RC2, they are
fieldTest[n]
fieldJoin
etc
BTW, I am unsure what you mean by:
does not seem to operate at all
the
problem is. I'll do the same!
- Keith
-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 1:26 PM
To: [EMAIL PROTECTED]
Subject: Re: requiredif question
Yes, no matter what I enter, nothing happends at all. It just accepts
whatever I enter
I did not see yours. Can you post your code again?
---
Thanks...
Mick Knutson
---
From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: requiredif question
Date: Wed, 25
input would be great, thanks!
- Keith
-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 1:32 PM
To: [EMAIL PROTECTED]
Subject: RE: requiredif question
I did not see yours. Can you post your code again?
---
Thanks...
Mick Knutson
The FA only shows a few of the options. Is there a NULL, NOTEQUALS etc
Where can I find the list of options?
---
Thanks...
Mick Knutson
---
_
MSN 8 with e-mail virus protection service: 2 months FREE*
, June 25, 2003 1:32 PM
To: [EMAIL PROTECTED]
Subject: RE: requiredif question
I did not see yours. Can you post your code again?
---
Thanks...
Mick Knutson
---
From: Kamholz, Keith (corp-staff) USX
[EMAIL PROTECTED]
Reply-To: Struts Users Mailing List
[EMAIL PROTECTED
I extend org.apache.struts.validator.ValidatorActionForm and all my normal
validation works except the requiredif.
---
Thanks...
Mick Knutson
---
From: Sandeep Takhar [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED
:
While testing my app with RC2, I noticed this:
In RC1, the requiredif validator rule used these tags:
field-test[n]
field-value[n]
field-join[n]
In RC2, it uses:
fieldValue[n]
fieldTest[n]
fieldJoin[n]
If you are getting a reflection error / null pointer
exception, this is why.
-Kevin
:
While testing my app with RC2, I noticed this:
In RC1, the requiredif validator rule used these tags:
field-test[n]
field-value[n]
field-join[n]
In RC2, it uses:
fieldValue[n]
fieldTest[n]
fieldJoin[n]
If you are getting a reflection error / null pointer
exception, this is why.
-Kevin
Hi all,
I'd like to use requiredif to validate some fields as follows:
on my jsp I have a checkbox, eg supplier,
if this checkbox is checked, then I want another field, eg name to be required.
I've tried to set this up in my validation.xml file as follows:
field property=name
Try this
arg1
name=requiredif
key=A name is
resource=false
/
--
From: Brian McSweeney[SMTP:[EMAIL PROTECTED]
Reply To: Struts Users Mailing List
Sent: Wednesday, June 11, 2003 9
FYI:
While testing my app with RC2, I noticed this:
In RC1, the requiredif validator rule used these tags:
field-test[n]
field-value[n]
field-join[n]
In RC2, it uses:
fieldValue[n]
fieldTest[n]
fieldJoin[n]
If you are getting a reflection error / null pointer
exception, this is why.
-Kevin
Is it possible to require a field based on the value of another field? I
tried the following, but no dice:
field property=effectiveDate
depends=requiredif
arg0 key=changeRequestFormEx.effectiveDate/
var
So, you're saying that effectiveDate is requiredif state == 940?
Try adding [0] to the end of the field* vars.
David
Is it possible to require a field based on the value of another field? I
tried the following, but no dice:
field property=effectiveDate
So, you're saying that effectiveDate is requiredif state == 940?
Yep.
Try adding [0] to the end of the field* vars.
That worked - thanks! I've hacked together some client-side javascript for
this since there's not one in the validator natively - I'll try to work a
method up for equals
Hi all,
I'm doing validation on a form where I have 3 dependent fields. If any one
is present, they all must be present. I set-up my validation by saying A
depends on B depends on C depends on A. I know this worked at one time.
Currently I'm using 1.1 rc1 and previously was using 1.1 b3. I
Has anyone ever enabled javascript validation on a form that included a
requiredif rule?
Is it correct to assume that this never should be done?
Because field-test is an illegal variable name in javascript it seems
to me that this is the case.
It is time for us to fish or cut bait.
Evan
Hi All,
I have just started using the requiredif validation rule with a field
that is also being validated with a mask rule. The server side
validation is working fine but the client side JavaScript has errors for
my requiredif form fields.
My form field requires the feild button2URL only
Greg Hess wrote:
Hi All,
I have just started using the requiredif validation rule with a field
that is also being validated with a mask rule. The server side
validation is working fine but the client side JavaScript has errors for
my requiredif form fields.
I cannot seem to get any client
Hi All,
I have just started using the requiredif validation rule. The server
side validation is working fine but the client side JavaScript has
errors for my requiredif form fields.
My form field requires the feild button2URL only if button2Lbl has been
entered and if button2URL it must pass
Hi All,
I really like the new requiredif validation rule with rc1 what a great
addition. I am wondering if there is a reason that it's implementation
has omitted the JavaScript validation method? Is it coming?
I have been looking at implementing my own JavaScript method for this
rule but do
form dependency validations. So, at least until a
Javascript guru wants to take a crack at it, requiredif is strictly
server-side.
James
-Original Message-
From: Greg Hess [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 5:19 PM
To: Struts
Subject: Where's the JavaScript
Looking for an example of requiredif that is similar to the example on the struts site
but without using an index and using ValidationForm not DynaValidationForm. If that
isn't possible could someone explain the index example for me. I dont understand the
struts-config entries especially where
Hey Dale,
Scroll back to yesterday morning, about 9:20 CST, there's
an example posted for Zsolt that worked for him.
regards,
-jeff
On Tuesday, February 25, 2003, at 03:56 PM, Rieberger, Dale wrote:
Looking for an example of requiredif that is similar to the example on
the struts site
Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 3:01 PM
To: Struts Users Mailing List
Subject: Re: Validation - requiredif
Hey Dale,
Scroll back to yesterday morning, about 9:20 CST, there's
an example posted for Zsolt that worked for him.
regards,
-jeff
-value^[0-9]+$/var-value
/var
/field
field property=lastName depends=requiredif,
mask
msg name=requiredif
key=errors.field.required /
msg name=mask key
mapping also
UserInfo?
* Have you ensured that the requiredIf logic is being invoked
at all? You could test this by say, changing the logic
(just for test purposes). For example, change the NULL
criterion to some dummy string literal. Then actually enter
that literal on the JSP and see
Sri - thanks for the reply. We have several other validations going on with
this form-bean, so I'm confident that your first two items are OK. I've
also pulled the 'REQUIREDIF' check out of the validation in question
(leaving just the MASK) and everything behaves correctly. I've also been
over
The only thing I can come up with is that the MASK
processing is screwing things up some way
One way to confirm that would be to remove the mask test.
Jerry
Sri
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
I'll take a look at this later today. There have been a number of
people saying that they have had problems with REQUIREDIF, so I want to
make sure it's still working.
James
-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 8:38 AM
The problem, sir, lies not in your requiredif, but in your mask.
When you say:
var-value^[A-Za-z -']+$/var-value
What you're literally saying is A to Z, a to z, and space to '. What
you want to say is:
var-value^[A-Za-z\ \-\']+$/var-value
When I used the correct mask, everything worked
: [REPOST] [Validator] REQUIREDIF Question
The problem, sir, lies not in your requiredif, but in your mask.
When you say:
var-value^[A-Za-z -']+$/var-value
What you're literally saying is A to Z, a to z, and space to
'. What
you want to say is:
var-value^[A-Za-z\ \-\']+$/var-value
/
var
var-namemask/var-name
var-value^[0-9]+$/var-value
/var
/field
field property=lastName depends=requiredif,
mask
Greetings,
My required if condition in validation.xml is not working.
The following is the code in my validation.xml file.
field property=lastName depends=requiredif
arg0 key=label.lastName/
var
var-namefield/var-name
Smoak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 12:41 PM
To: 'Struts Users Mailing List'
Subject: RE: [VALIDATOR] requiredif ??
I'm Still struggling with requiredif... there doesn't seem to be a working
example of it included with 1.1b3. I've gone through the documentation
I'm Still struggling with requiredif... there doesn't seem to be a working
example of it included with 1.1b3. I've gone through the documentation and
come up with this. I'm trying to say that address is required only if
1. prospect is null
2. prospectNameOrId is not null
3. action
(0)207-375-4923
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2003 17:41
To: 'Struts Users Mailing List'
Subject: RE: [VALIDATOR] requiredif ??
I'm Still struggling with requiredif... there doesn't seem to
be a working
example
: [VALIDATOR] requiredif ??
I'm Still struggling with requiredif... there doesn't seem to
be a working example of it included with 1.1b3. I've gone
through the documentation and come up with this. I'm trying
to say that address is required only if
1. prospect is null
2
Man, that looks convoluted.
Sri
-Original Message-
From: PILGRIM, Peter, FM [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 1:03 PM
To: 'Struts Users Mailing List'
Subject: RE: [VALIDATOR] requiredif ??
In the Struts User Guide there is a large example
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 2:30 PM
To: Struts Users Mailing List
Subject: RE: [VALIDATOR] requiredif ??
Man, that looks convoluted.
Sri
Well, short of implementing a full boolean expression language inside
Validator, it was the best
I suppose that is an acceptable price to pay for being to declaratively define
validations.
I am hoping to take advantage of requiredif to stop validator from validating upon the
first error encountered -- of course it works only where one is testing the 'required'
rule.
Sri
-Original
:55 -0500
Sri Sankaran [EMAIL PROTECTED] wrote:
Man, that looks convoluted.
Sri
-Original Message-
From: PILGRIM, Peter, FM [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 1:03 PM
To: 'Struts Users Mailing List'
Subject: RE: [VALIDATOR] requiredif ??
In the Struts User Guide
James wrote:
A quick look at that configuration looks correct. Let me know if it
doesn't work for you.
No, it doesn't. It's as if that rule isn't even there-- if there is no
prospect, and there is a prospect name, even if the address is blank, it
passes validation and goes to the next step.
From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 2:44 PM
To: 'Struts Users Mailing List'
Subject: RE: [VALIDATOR] requiredif ??
James wrote:
A quick look at that configuration looks correct. Let me know if it
doesn't work for you.
No, it doesn't
James wrote:
Dumb question: Are you sure you're running validations at all?
Yes. I have some simple validations like:
field property=newEmailAddress
depends=email
arg0 key=label.additional.email/
/field
and
fieldproperty=date
:39 AM
To: 'Struts Users Mailing List'
Subject: RE: [VALIDATOR] requiredif ??
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 2:30 PM
To: Struts Users Mailing List
Subject: RE: [VALIDATOR] requiredif ??
Man, that looks convoluted.
Sri
Well, short
From: Karr, David [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 6:05 PM
To: Struts Users Mailing List
Subject: RE: [VALIDATOR] requiredif ??
Gee, I haven't been paying much attention to this issue, but
that looks like there could be some synergy with the JSTL EL
engine
On Thu, 30 Jan 2003, James Turner wrote:
Date: Thu, 30 Jan 2003 19:06:19 -0500
From: James Turner [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: [VALIDATOR] requiredif ??
From: Karr, David [mailto
James wrote:
Check out the requiredif validator in 1.1b3
I have 1.1b3, I have the struts-validator webapp deployed, but the only
occurence of the text requiredif is in the validator-rules.xml file. I
can't find an example of how to use it. Can someone post a bit of their
validation.xml file
Where should I send bugs or fixes with common validator. Specifically the
EQUAL condition in RequiredIf doesnt seem to do anything.
if (dependTest.equals(FIELD_TEST_EQUAL)) {
this_required = dependTestValue.equalsIgnoreCase(dependVal
Open a bug report for the issue and attach a patch file to it.
David
From: Weber, Jeremy [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' (E-mail) [EMAIL PROTECTED]
Subject: Where to send bugs/fixes (RequiredIf Equals Condition)
Date
Sorry I am not following you. I am trying to to use the 'requiredif'
validation not 'required' validation. I dont have xml defining the field.
Just what I had posted in the previous message to illustrate my problem. I
am currently looking at the code of requiredif to see if its functioning
that the field
is required. id: required,mycheck
Then it becomes possible to have an optional field.
-Dennis
On Thu, 2003-01-23 at 14:33, Weber, Jeremy wrote:
Yes, but I would think that it would only be run after the first validation
(the requiredif) runs. Is that not a correct assumption? Do I need
I requested this before and have not recieved a response...:( Any takers
out there? Currently I am having a heck of time figuring out how to make
this work...
I have checked out all the online examples, but I am unclear as to what this
stuff means...
If you have this in your
If you're just requesting an example of something, here's what I'm currently using:
field property=studentId depends=requiredif,integer,minlength,maxlength
msg name=requiredif key=errors.msg.studentIDorNameRequired/
msg name=integer key=errors.msg.invalidStudentID
html:radio property=useSecure value=false
onclick=showSecureOptions('false');/ No/td
/tr
field property=sslKeyStore
depends=requiredif,exists
arg0
key=appserver.sslkeystore.displayname/
var
I'm not sure exists is a standard validation rule. Did you define it yourself?
-Original Message-
From: Weber, Jeremy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 2:00 PM
To: 'Struts Users Mailing List'
Subject: RE: RequiredIf Example Request
Thank you , thank you, thank
Yes, but I would think that it would only be run after the first validation
(the requiredif) runs. Is that not a correct assumption? Do I need to add
anything to the exists validation to make it so? In your example if the
requiredif fails, does it still try to run the next validations
1 - 100 of 106 matches
Mail list logo