Velocity
I am wondering if this is possible in a velocity module -
<code>
<tr>
<input type="radio" name="positionType" class ="radio" value="New" #if ($positionType == "new") checked #end>New
<input type="radio" name="positionType" class ="radio" value="Replacement" #if ($positionType == "Replacement") checked #end>Replacement
</tr>
<tr>
<td valign="top">Date Initiated</td>
<td>
<input name="initiationDate" type="date" value="#if($positionType == "new") $validator.getElement("positionID").setReqd(true) #end">
</td>
</tr>
</code>
What i am trying to do is depending on the value of the radio button type positionType, i am trying to set a property value for a java object validator.
The problem i am facing is when the form is being loaded the value for positionType is not reflected properly.
So i was wondering if this is possible at all using the velocity module.

