Givler, Eric wrote:
But can't you just define a message specific to the field and validator for 
each definition in the validations.xml file?

      <field property="avg_meter_age" page="5" 
depends="required,integer,intRange">
        <arg0 name="required" key="PF_Report_5.AvgMeterAge"/>
        <msg name="integer" 
key="validation.error.PF_Report_5.AvgMeterAge.number"/>
        <msg name="intRange" 
key="validation.error.PF_Report_5.AvgMeterAge.number"/>
        <arg1 name="intRange" key="${var:min}" resource="false"/>
        <arg2 name="intRange" key="${var:max}" resource="false"/>
        <var><var-name>min</var-name><var-value>0</var-value></var>
<var><var-name>max</var-name><var-value>50</var-value></var> </field>

Yes, yes I can... good old struts documentation. :) I find a lot of the more complex questions aren't answered by the docs (or I'm not interpreting my problem correctly) and automatically go to the list for the more simpler stuff.

Thanks :)

- Scott

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

Reply via email to