Try fd:length validator:

        <fd:length min="2" max="4"/>

http://cocoon.apache.org/2.1/userdocs/widgetconcepts/validation.html

gary

> -----Original Message-----
> From: Christian Decker [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 29, 2008 2:40 PM
> To: [email protected]
> Subject: fd:length to fi:styling maxlength
> 
> 
> Hi all,
> 
> I'm trying to reflect my fd:length field in the form model to be reflected
> in the actual form that is generated as the maxlength attribute in the
> input
> field. Problem is that I know only how to do that by setting the
> fi:styling
> in the template, but I would like to have it automatically in there. Is
> there an easy way to do this?
> 
> Regards,
> Chris
> --
> http://blog.snyke.net
> --
> View this message in context: http://www.nabble.com/fd%3Alength-to-
> fi%3Astyling-maxlength-tp20233326p20233326.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to