I only have experience using the following in my validator.xml:
<field property="distance"
depends="required,integer">
<arg0 key="form.displayname"/>
</field>
<field property="rate"
depends="required,float">
<arg0 key="form.displayname"/>
</field>
integer and float are in the validator-rules.xml
They do work.
The struts-validator.war in the struts 1.1 release uses this in the example
Barry
----- Original Message -----
From: "Marc Dugger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 16, 2003 2:42 PM
Subject: only Strings appear to be validated by Validator
> My validation.xml:
>
> <form name="/note/note_schedule/edit/details">
> <field property="noteScheduleTypeId"
depends="required,integer">
> <arg0 key="Note Schedule Type ID" resource="false"/>
> </field>
> <field property="interestRateIndexTypeId"
> depends="validwhen,integer">
> <arg0 key="Interest Rate Index Type" resource="false"/>
> <var>
> <var-name>test</var-name>
> <var-value>((noteScheduleTypeId != 5) or (*this* !=
> null))</var-value>
> </var>
> </field>
> <field property="name" depends="required">
> <arg0 key="Name" resource="false"/>
> </field>
> <field property="description" depends="required">
> <arg0 key="Description" resource="false"/>
> </field>
> <field property="amortizationTerm" depends="required">
> <arg0 key="Amortization Term" resource="false"/>
> </field>
> <field property="maturityTerm" depends="required">
> <arg0 key="Maturity Term" resource="false"/>
> </field>
> <field property="timeIntervalId" depends="required">
> <arg0 key="Time Interval" resource="false"/>
> </field>
> </form>
>
> ...I'm only receiving validation errors for 'Name' and 'Description'. Has
> anyone experienced this? Thanks in advance.
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.525 / Virus Database: 322 - Release Date: 10/9/2003
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]