<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE form-validation PUBLIC
          "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
          "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
<!--
	Descriptions: This file contains specific validation rules for an person module
	History: Created on 12/07/2005	Muddaiah Ranga	
-->	
<form-validation>
<formset>

    <form name="messageSearchForm">
    	
    	<field property="transmissionDate" depends="date">
	   	<arg key="label.message.transmissionDate"/>
        </field>
        
        <field property="transmissionStartDate" depends="date,validwhen">
		<msg name="validwhen" key="errors.transmissionRangeDate.bothRequired"/>
		<arg key="label.message.transmissionStartDate"/>
		<var>
			<var-name>test</var-name>
			<var-value>((transmissionEndDate == null) or (*this* != null))</var-value>
            	</var>
        </field>
        
        <field property="transmissionEndDate" depends="date,validwhen">
        	<msg name="validwhen" key="errors.transmissionRangeDate.bothRequired"/>
		<arg key="label.message.transmissionEndDate"/>
		<var>
			<var-name>test</var-name>
			<var-value>((transmissionStartDate == null) or (*this* != null))</var-value>
            	</var>
        </field>
        
    </form>
    
</formset>
</form-validation>

