Support addition of custom violations according to JSR 303 standards

50 views
Skip to first unread message

Ram

unread,
Sep 25, 2012, 1:25:34 PM9/25/12
to gwt-val...@googlegroups.com
I was trying to validate my object using gwt validation:

The gwt framework does not support adding violations. An example of the same:

arg1.disableDefaultConstraintViolation();
arg1.buildConstraintViolationWithTemplate("test323").addNode("weew").
                                addNode(null).inIterable().atIndex(0).addNode("a").inIterable().
                                addConstraintViolation();

arg1.buildConstraintViolationWithTemplate("test1").addNode("weew").
                addNode(null).inIterable().atIndex(2).addNode("a").inIterable().
                addConstraintViolation();
The path is very important for us as we use the same to highlight fields on screen.

I had rasied an issue and patched up the validation framework
http://code.google.com/p/gwt-validation/issues/detail?id=95 

Any chance this can make into the next release...

chris.r

unread,
Sep 26, 2012, 11:27:15 AM9/26/12
to gwt-val...@googlegroups.com
Hey, I responded over in the issue but thanks for reporting!

Ram

unread,
Oct 3, 2012, 12:13:27 PM10/3/12
to gwt-val...@googlegroups.com
I have updated the issue. It would be great if you can fix this.. Let me know if you require any other information
Reply all
Reply to author
Forward
0 new messages