Re: [OFBiz] Dev - Entity field validators

Posted by Peter Goron on
URL: http://ofbiz.116.s1.nabble.com/OFBiz-Dev-Entity-field-validators-tp166047p166050.html

Hi David,

I would like to run field validators in GenericValue setters. Is there
any reason to not do a such thing ?

Peter

Le lundi 26 septembre 2005 à 12:27 -0600, David E. Jones a écrit :

> This is one of those questions that I choose not to answer for time  
> sake. No offense intended, but there is information about this in the  
> Entity Engine Guide (see the Docs & Books page on the ofbiz.org  
> site), and the question has been answered on the mailing lists a  
> couple of times.
>
> -David
>
>
> On Sep 26, 2005, at 8:54 AM, Robert Riggins wrote:
>
> > I don't have an answer, but I'm interested in this also. I've watched
> > for a response to this message and after a couple days without a
> > response, I thought I'd try to keep this topic alive.
> >
> > Does anyone have experience with the type of validation Peter mentions
> > below?
> >
> > Thanks,
> > Rob Riggins
> >
> > -----Original Message-----
> > From: [hidden email] [mailto:[hidden email]]
> > On Behalf Of Peter Goron
> > Sent: Friday, September 23, 2005 3:37 AM
> > To: [hidden email]
> > Subject: [OFBiz] Dev - Entity field validators
> >
> > Hi,
> >
> > Entity engine defines in its xml schemas that a validation method  
> > can be
> > associated to entity field type and/or to a specific field of an  
> > entity.
> > e.g:
> > <field-type-def type="id-ne" sql-type="VARCHAR(20)"java-type="String">
> >   <validate method="isNotEmpty" />
> > </field-type-def>
> >
> > I would like to know when validation methods are called because after
> > having done some tests and checked entity engine source code, it seems
> > that validation methods are never called.
> >
> > Do I miss something ?
> >
> > Peter
> >
> >
> >
> > _______________________________________________
> > Dev mailing list
> > [hidden email]
> > http://lists.ofbiz.org/mailman/listinfo/dev
> >
> > _______________________________________________
> > Dev mailing list
> > [hidden email]
> > http://lists.ofbiz.org/mailman/listinfo/dev
> >
>
>  _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev