webtier@glassfish.java.net

JSF 1.2 - f:validateLength + EL

From: <webtier_at_javadesktop.org>
Date: Thu, 02 Apr 2009 13:15:43 PDT

Is it possible to dynamically set the maximum and minimum attribute of the f:validateLength? I tried with an EL and it didn't work:

        <h:inputText
                 id="none"
                 title="#{field.description}"
                 value="#{field.value}"
                 styleClass="input medium_field"
                 rendered="#{field.mask == null}"
                 required="true">
                <f:validateLength maximum="#{field.max}" minimum="#{field.min}"/>
        </h:inputText>

I'm using Seam 2.1.1, on top of JSF 1.2_09 (with JBoss EL).
[Message sent by forum member 'israelbgf' (israelbgf)]

http://forums.java.net/jive/thread.jspa?messageID=340359