[validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
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

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread David Graham
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

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
Ah-hah, figured it out. This will not work: arg0 key=label.bin.title/ but this will work: arg0 key=label.bin.title resource=true/ I will enter this as a bug, because the documentation states that By default the arg0-arg3 elements will try to look up the key attribute in the message

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread David Graham
--- Sgarlata Matt [EMAIL PROTECTED] wrote: Ah-hah, figured it out. This will not work: arg0 key=label.bin.title/ but this will work: arg0 key=label.bin.title resource=true/ I will enter this as a bug, because the documentation states that By default the arg0-arg3 elements will try

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
David Graham wrote: I'm confused by your setup: arg0 name=fieldname key=label.bin.title/ Yeah, I was trying random stuff. The final thing that worked was: field property=description depends=maxlength arg0 key=label.bin.title resource=true/ arg1 name=maxlength key=${var:maxlength}

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread David Graham
--- Sgarlata Matt [EMAIL PROTECTED] wrote: David Graham wrote: I'm confused by your setup: arg0 name=fieldname key=label.bin.title/ Yeah, I was trying random stuff. The final thing that worked was: field property=description depends=maxlength arg0 key=label.bin.title

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
David Graham wrote: That's correct, the default is true. Maybe it's broken when you don't provide a name attribute? I agree; I will add this info to BugZilla. Thanks again for all your help. David Matt - To unsubscribe,

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Mike Kienenberger
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