Re: RE: Record Field Validation
Franck Routier <[email protected]> Thu, 30 Sep 2010 16:33:00 +0200
| Newsgroups | gmane.comp.java.orm.simpleorm |
|---|---|
| Organization | Axège sarl |
| Message-ID | <1285857180.6308.12.camel@franck-laptop> |
Hi,
simpleorm provides a notion of validators (SValidatorI interface) that
does validation on a field. A fieldMeta can have several validators.
There is also record level validation, via the onValidateRecord()
method.
See simpleorm.examples.ValidationTest.java
Communication with the UI is out of the scope of Simpleorm. However,
SException provides the infrastructure to carry quite a lot of
information about what went wrong (instance, fieldMeta, fieldValue,
validator, etc.) This can be used to provide the ui with the information
it needs to display a sensible message.
Maybe have a look at http://www.simplets.org/
I personnaly use http://barracudamvc.org framework for presentation
(web), but it will not directly use SException.
Hope that helps,
Franck
Le mercredi 29 septembre 2010 à 09:56 -0800, Abel Birya a écrit :
>
> Hello,
>
> I was wondering what the best way is to do validation using SimpleORM
> in such a way that I can be able to catch errors if any and diplay
> them on a user interface as feedback to a user.
>
> Kindly assist.
>
> Regards Abel
>
--
Franck Routier
Logo Axège
Axège
23,rue Saint-Simon
63000 Clermont-Ferrand
Tél: +33 (0)4 63 05 95 40
Fax: +33 (0)4 73 70 65 29
Email: [email protected]
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/SimpleORM/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/SimpleORM/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/