Hi, > If you want to use commons validators only you have to do this: > > <%@ taglib uri="http://myfaces.apache.org/commons/validators" prefix="mcv" %> > > <h:inputText id="email2" > value="#{validateForm.email2}" required="true"> > <mcv:validateEmail detailMessage="Not a valid > email address."/> > </h:inputText> > > but If we move this validator from tomahawk to myfaces commons we need > that the previous code: > > <h:inputText id="email2" > value="#{validateForm.email2}" required="true"> > <t:validateEmail detailMessage="Not a valid email > address."/> > </h:inputText> > > Still works!!!!
we could add a "runtime" dependency to commons and the <t:validateEmail tag "points" to the TAG-CLASS from commons (no double code ) > Finally I agree with the idea of myfaces-commons but just with this 4 modules: > > myfaces-commons-converters > myfaces-commons-validators > myfaces-commons-utils > myfaces-commons-components looks like Tobago and Tomahawk might be interested in sharing a dojo-based "common" jar ? (and other folks out there as well ?) > > but tomahawk 1.2.x should remains with minimal changes and references > on tld to myfaces-commons components. -M > > regard > > Leonardo Uribe > -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf mail: matzew-at-apache-dot-org