Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Javascript export of bean validation rules
PostPosted: Tue Jun 26, 2012 5:46 pm 
Newbie

Joined: Tue Jul 17, 2007 9:05 am
Posts: 9
Hi,
I was discussing this topic with Emmanuel Bernard by email and Emmanuel suggested that we move this conversation on the forum, so here we are :).

The idea would be to propose a javascript export of the bean validation rules.
Here is my point: when JSR303 came, it was quickly adopted by several major web frameworks/standards (such as JSF and Spring MVC). I'm sure that providing a Javascript export of the validation rules would help those frameworks to do "true client side validation".
Of course this could be implemented on the web framework side like it was the case for Rich-Faces. But in that case, we will need to reinvent the wheel for each framework.
Also, I'm not sure if it should be part of bean validation from the beginning. May be it would make more sense to make it part of Hibernate Validator until the JS code is considered as stable enough?


Top
 Profile  
 
 Post subject: Re: Javascript export of bean validation rules
PostPosted: Wed Feb 19, 2014 5:33 pm 
Newbie

Joined: Wed Feb 19, 2014 5:22 pm
Posts: 1
Currently there's a solution named " HOCON ", it seems promising to use the validation rules in end to end.
Please check yourself for specification and implementation.
github.com/typesafehub/config/blob/master/HOCON.md
github.com/deephacks/confit
marcinkubala.wordpress.com/2013/10/09/typesace-config-hocon/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.