struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Turner" <tur...@blackbear.com>
Subject RE: Help validator requiredif
Date Fri, 13 Dec 2002 06:18:33 GMT
> -----Original Message-----
> From: Frost, Gary [IT] [mailto:Gary.Frost@ssmb.com.au] 
> Sent: Friday, December 13, 2002 1:08 AM
> To: 'struts-user@jakarta.apache.org'
> Subject: Help validator requiredif
> 
> 
> Ok,
> 
> the requiredif check.   BTW I'd also like to perform a check on
> absoluteSettle to ensure that (if it is required) it is a 
> date, would putting depends="requiredif, date" (with 
> appropriate date related vars in
> place) work?

Yep.

The thing that strikes me about the code below is that you have
field-indexed set to true.  Are both absoluteSettle and settleType
properties of an indexed field called dependents?  Also, is the value
returned for settleType equal to the string "Actual"?  If so, this
should be working.

James

> 
> 			<field property="settleType" depends="required">
> 				<arg0
> key="text.tradeentry.date.settleType.label" />
> 			</field>
> 
> 			<field property="absoluteSettle"
> depends="requiredif" indexedListProperty="dependents">
> 				<arg0
> key="text.tradeentry.date.absoluteSettle.label"/>
> 				<var>
> 					<var-name>field[0]</var-name>
> 	    			<var-value>settleType</var-value>
> 				</var>
> 				<var>
> 	
> <var-name>field-indexed[0]</var-name>
> 					<var-value>true</var-value>
>       			</var>
> 				<var>
> 		    		<var-name>field-test[0]</var-name>
> 			    	<var-value>EQUAL</var-value>
> 				</var>
> 				<var>
> 				    <var-name>field-value[0]</var-name>
> 					<var-value>Actual</var-value>
> 				</var>
> 			</field> 
> 
> 
> Thanks for any help
> 
> Gary
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <mailto:struts-user-help@jakarta.apache.org>
> 



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message