Re: Where to send bugs/fixes (RequiredIf Equals Condition)

2003-01-27 Thread David Graham
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: Mon, 27 Jan 2003 09:21:17 -0500

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);
}



Making it so, actually does the comparison

   if (dependTest.equals(FIELD_TEST_EQUAL)) {

		this_required = dependTestValue.equalsIgnoreCase(dependVal);
		String dependPropValue =
ValidatorUtil.getValueAsString(bean, dependProp);
		if ( ! dependTestValue.equals( dependPropValue ) ){
		   return false;
		}
   }


Thanks,

Jeremy Weber
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>


_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



Where to send bugs/fixes (RequiredIf Equals Condition)

2003-01-27 Thread Weber, Jeremy
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);
}



Making it so, actually does the comparison

   if (dependTest.equals(FIELD_TEST_EQUAL)) {

this_required = dependTestValue.equalsIgnoreCase(dependVal);
String dependPropValue =
ValidatorUtil.getValueAsString(bean, dependProp);
if ( ! dependTestValue.equals( dependPropValue ) ){
   return false;
}
   }
   

Thanks, 

Jeremy Weber
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   
For additional commands, e-mail: