Try:
<arg0 name="maxlength" key="${var:maxlength}" resource="false"/>

The number after "arg" is the position in the message to replace so you
need a 0.

David

--- Sgarlata Matt <[EMAIL PROTECTED]> wrote:
> I'm having some trouble using the maxlength validation and I was hoping 
> someone could give me some help.  I have a form with one required field 
> and one field with a maximum length of 2000 characters.  When input 
> validation fails for both fields I get the following messages (text in 
> parentheses I added):
> 
> Bin Name is required. (good!)
> null can not be greater than 2000 characters.  (not good)
> 
> I'm actually using the same key to test both though.  Here is my 
> validation.xml file:
> 
> <form-validation>
>    <formset>
>      <form name="bin">
>        <field
>          property="title"
>          depends="required">
>          <arg0 key="label.bin.title"/>
>        </field>
>        <field
>          property="description"
>          depends="maxlength">
>          <arg0 name="fieldname" key="label.bin.title"/>
>          <arg1 name="maxlength" key="${var:maxlength}"
> resource="false"/>
>          <var>
>            <var-name>maxlength</var-name>
>            <var-value>2000</var-value>
>          </var>
>        </field>
>      </form>
>    </formset>
> </form-validation>
> 
> Any ideas anyone?  Thanks,
> 
> Matt
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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

Reply via email to